home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer (Italian) 47 / PC Gamer IT CD 47 2-2.iso / Nerf / NERFDEMO.EXE / System / UWindow.u / ScriptText10.TextBuffer < prev    next >
Unknown  |  1999-10-21  |  20.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 66 c7 02 63 6c 61 73 73 |........|f..class|
|00000010| 20 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 | UWindow|HTMLText|
|00000020| 41 72 65 61 20 65 78 70 | 61 6e 64 73 20 55 57 69 |Area exp|ands UWi|
|00000030| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 41 |ndowDyna|micTextA|
|00000040| 72 65 61 3b 0d 0a 0d 0a | 2f 2a 0d 0a 0d 0a 48 54 |rea;....|/*....HT|
|00000050| 4d 4c 20 43 75 72 72 65 | 6e 74 6c 79 20 53 75 70 |ML Curre|ntly Sup|
|00000060| 70 6f 72 74 65 64 0d 0a | 3d 3d 3d 3d 3d 3d 3d 3d |ported..|========|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 0d 0a 0d 0a 50 61 72 73 | 65 64 20 6f 6e 20 61 64 |....Pars|ed on ad|
|00000090| 64 0d 0a 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |d..-----|--------|
|000000a0| 0d 0a 3c 62 6f 64 79 20 | 62 67 63 6f 6c 6f 72 3d |..<body |bgcolor=|
|000000b0| 23 66 66 66 66 66 66 20 | 6c 69 6e 6b 3d 23 66 66 |#ffffff |link=#ff|
|000000c0| 66 66 66 66 20 61 6c 69 | 6e 6b 3d 23 66 66 66 66 |ffff ali|nk=#ffff|
|000000d0| 66 66 3e 2e 2e 2e 3c 2f | 62 6f 64 79 3e 0d 0a 3c |ff>...</|body>..<|
|000000e0| 66 6f 6e 74 20 63 6f 6c | 6f 72 3d 23 66 66 66 66 |font col|or=#ffff|
|000000f0| 66 66 20 62 67 63 6f 6c | 6f 72 3d 23 66 66 66 66 |ff bgcol|or=#ffff|
|00000100| 66 66 3e 2e 2e 2e 3c 2f | 66 6f 6e 74 3e 0d 0a 3c |ff>...</|font>..<|
|00000110| 62 72 3e 0d 0a 3c 63 65 | 6e 74 65 72 3e 2e 2e 2e |br>..<ce|nter>...|
|00000120| 2e 3c 2f 63 65 6e 74 65 | 72 3e 0d 0a 3c 70 3e 0d |.</cente|r>..<p>.|
|00000130| 0a 3c 68 31 3e 2e 2e 2e | 3c 2f 68 31 3e 0d 0a 0d |.<h1>...|</h1>...|
|00000140| 0a 50 61 72 73 65 64 20 | 6f 6e 20 61 64 64 20 61 |.Parsed |on add a|
|00000150| 6e 64 20 64 69 73 70 6c | 61 79 0d 0a 2d 2d 2d 2d |nd displ|ay..----|
|00000160| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000170| 2d 2d 2d 2d 2d 0d 0a 3c | 6e 6f 62 72 3e 2e 2e 2e |-----..<|nobr>...|
|00000180| 3c 2f 6e 6f 62 72 3e 0d | 0a 3c 61 20 68 72 65 66 |</nobr>.|.<a href|
|00000190| 3d 22 2e 2e 2e 22 3e 2e | 2e 2e 3c 2f 61 3e 0d 0a |="...">.|..</a>..|
|000001a0| 3c 62 3e 2e 2e 2e 3c 2f | 62 3e 0d 0a 3c 75 3e 2e |<b>...</|b>..<u>.|
|000001b0| 2e 2e 3c 2f 75 3e 0d 0a | 3c 62 6c 69 6e 6b 3e 2e |..</u>..|<blink>.|
|000001c0| 2e 2e 3c 2f 62 6c 69 6e | 6b 3e 0d 0a 0d 0a 50 61 |..</blin|k>....Pa|
|000001d0| 72 73 65 64 20 6f 6e 6c | 79 20 6f 6e 20 64 69 73 |rsed onl|y on dis|
|000001e0| 70 6c 61 79 0d 0a 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |play..--|--------|
|000001f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0d 0a 26 67 |--------|----..&g|
|00000200| 74 3b 0d 0a 26 6c 74 3b | 0d 0a 26 61 6d 70 3b 0d |t;..&lt;|..&amp;.|
|00000210| 0a 26 6e 62 73 70 3b 0d | 0a 0d 0a 50 6c 61 6e 6e |.&nbsp;.|...Plann|
|00000220| 65 64 20 69 6d 70 72 6f | 76 65 6d 65 6e 74 73 0d |ed impro|vements.|
|00000230| 0a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000240| 2d 2d 2d 2d 2d 0d 0a 3c | 75 6c 3e 3c 6c 69 3e 69 |-----..<|ul><li>i|
|00000250| 74 65 6d 20 31 3c 6c 69 | 3e 69 74 65 6d 20 32 2e |tem 1<li|>item 2.|
|00000260| 2e 2e 3c 2f 75 6c 3e 0d | 0a 3c 74 61 62 6c 65 3e |..</ul>.|.<table>|
|00000270| 2e 2e 2e 3c 2f 74 61 62 | 6c 65 3e 0d 0a 0d 0a 42 |...</tab|le>....B|
|00000280| 75 67 73 0d 0a 2d 2d 2d | 2d 0d 0a 54 68 65 20 70 |ugs..---|-..The p|
|00000290| 61 72 73 69 6e 67 20 69 | 73 20 70 72 65 74 74 79 |arsing i|s pretty|
|000002a0| 20 73 6c 61 63 6b 21 0d | 0a 0d 0a 2a 2f 0d 0a 0d | slack!.|...*/...|
|000002b0| 0a 2f 2f 20 64 65 66 61 | 75 6c 74 20 73 74 79 6c |.// defa|ult styl|
|000002c0| 65 73 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 54 65 |es..var |Color Te|
|000002d0| 78 74 43 6f 6c 6f 72 3b | 0d 0a 76 61 72 20 43 6f |xtColor;|..var Co|
|000002e0| 6c 6f 72 20 42 47 43 6f | 6c 6f 72 3b 0d 0a 76 61 |lor BGCo|lor;..va|
|000002f0| 72 20 43 6f 6c 6f 72 20 | 4c 69 6e 6b 43 6f 6c 6f |r Color |LinkColo|
|00000300| 72 3b 0d 0a 76 61 72 20 | 43 6f 6c 6f 72 20 41 4c |r;..var |Color AL|
|00000310| 69 6e 6b 43 6f 6c 6f 72 | 3b 0d 0a 76 61 72 20 66 |inkColor|;..var f|
|00000320| 6c 6f 61 74 20 4c 61 73 | 74 42 6c 69 6e 6b 54 69 |loat Las|tBlinkTi|
|00000330| 6d 65 3b 0d 0a 76 61 72 | 20 62 6f 6f 6c 20 62 53 |me;..var| bool bS|
|00000340| 68 6f 77 42 6c 69 6e 6b | 3b 0d 0a 76 61 72 20 62 |howBlink|;..var b|
|00000350| 6f 6f 6c 20 62 52 65 6c | 65 61 73 65 64 3b 0d 0a |ool bRel|eased;..|
|00000360| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 53 65 74 48 54 |..functi|on SetHT|
|00000370| 4d 4c 28 73 74 72 69 6e | 67 20 48 54 4d 4c 29 0d |ML(strin|g HTML).|
|00000380| 0a 7b 0d 0a 09 43 6c 65 | 61 72 28 29 3b 0d 0a 09 |.{...Cle|ar();...|
|00000390| 52 65 70 6c 61 63 65 54 | 65 78 74 28 48 54 4d 4c |ReplaceT|ext(HTML|
|000003a0| 2c 20 43 68 72 28 31 33 | 29 24 43 68 72 28 31 30 |, Chr(13|)$Chr(10|
|000003b0| 29 2c 20 22 20 22 29 3b | 0d 0a 09 52 65 70 6c 61 |), " ");|...Repla|
|000003c0| 63 65 54 65 78 74 28 48 | 54 4d 4c 2c 20 43 68 72 |ceText(H|TML, Chr|
|000003d0| 28 31 33 29 2c 20 22 20 | 22 29 3b 0d 0a 09 52 65 |(13), " |");...Re|
|000003e0| 70 6c 61 63 65 54 65 78 | 74 28 48 54 4d 4c 2c 20 |placeTex|t(HTML, |
|000003f0| 43 68 72 28 31 30 29 2c | 20 22 20 22 29 3b 0d 0a |Chr(10),| " ");..|
|00000400| 09 41 64 64 54 65 78 74 | 28 48 54 4d 4c 29 3b 0d |.AddText|(HTML);.|
|00000410| 0a 7d 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 42 |.}....fu|nction B|
|00000420| 65 66 6f 72 65 50 61 69 | 6e 74 28 43 61 6e 76 61 |eforePai|nt(Canva|
|00000430| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|00000440| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 53 75 70 65 |oat Y)..|{...Supe|
|00000450| 72 2e 42 65 66 6f 72 65 | 50 61 69 6e 74 28 43 2c |r.Before|Paint(C,|
|00000460| 20 58 2c 20 59 29 3b 0d | 0a 09 43 75 72 73 6f 72 | X, Y);.|..Cursor|
|00000470| 20 3d 20 52 6f 6f 74 2e | 4e 6f 72 6d 61 6c 43 75 | = Root.|NormalCu|
|00000480| 72 73 6f 72 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |rsor;..}|....func|
|00000490| 74 69 6f 6e 20 50 61 69 | 6e 74 28 43 61 6e 76 61 |tion Pai|nt(Canva|
|000004a0| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|000004b0| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 2f 2f 09 43 2e |oat Y)..|{..//.C.|
|000004c0| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 42 47 43 6f |DrawColo|r = BGCo|
|000004d0| 6c 6f 72 3b 0d 0a 2f 2f | 09 44 72 61 77 53 74 72 |lor;..//|.DrawStr|
|000004e0| 65 74 63 68 65 64 54 65 | 78 74 75 72 65 28 43 2c |etchedTe|xture(C,|
|000004f0| 20 30 2c 20 30 2c 20 57 | 69 6e 57 69 64 74 68 2c | 0, 0, W|inWidth,|
|00000500| 20 57 69 6e 48 65 69 67 | 68 74 2c 20 54 65 78 74 | WinHeig|ht, Text|
|00000510| 75 72 65 27 57 68 69 74 | 65 54 65 78 74 75 72 65 |ure'Whit|eTexture|
|00000520| 27 29 3b 0d 0a 09 53 75 | 70 65 72 2e 50 61 69 6e |');...Su|per.Pain|
|00000530| 74 28 43 2c 20 58 2c 20 | 59 29 3b 0d 0a 09 62 52 |t(C, X, |Y);...bR|
|00000540| 65 6c 65 61 73 65 64 20 | 3d 20 46 61 6c 73 65 3b |eleased |= False;|
|00000550| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000560| 43 6c 69 63 6b 28 66 6c | 6f 61 74 20 58 2c 20 66 |Click(fl|oat X, f|
|00000570| 6c 6f 61 74 20 59 29 0d | 0a 7b 0d 0a 09 53 75 70 |loat Y).|.{...Sup|
|00000580| 65 72 2e 43 6c 69 63 6b | 28 58 2c 20 59 29 3b 0d |er.Click|(X, Y);.|
|00000590| 0a 09 62 52 65 6c 65 61 | 73 65 64 20 3d 20 54 72 |..bRelea|sed = Tr|
|000005a0| 75 65 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |ue;..}..|..functi|
|000005b0| 6f 6e 20 50 72 6f 63 65 | 73 73 55 52 4c 28 73 74 |on Proce|ssURL(st|
|000005c0| 72 69 6e 67 20 55 52 4c | 29 0d 0a 7b 0d 0a 09 4c |ring URL|)..{...L|
|000005d0| 6f 67 28 22 43 6c 69 63 | 6b 65 64 20 4c 69 6e 6b |og("Clic|ked Link|
|000005e0| 3a 20 3e 3e 22 24 55 52 | 4c 24 22 3c 3c 22 29 3b |: >>"$UR|L$"<<");|
|000005f0| 0d 0a 0d 0a 09 69 66 28 | 20 4c 65 66 74 28 55 52 |.....if(| Left(UR|
|00000600| 4c 2c 20 37 29 20 7e 3d | 20 22 6d 61 69 6c 74 6f |L, 7) ~=| "mailto|
|00000610| 3a 22 20 29 0d 0a 09 09 | 47 65 74 50 6c 61 79 65 |:" )....|GetPlaye|
|00000620| 72 4f 77 6e 65 72 28 29 | 2e 43 6f 6e 73 6f 6c 65 |rOwner()|.Console|
|00000630| 43 6f 6d 6d 61 6e 64 28 | 22 73 74 61 72 74 20 22 |Command(|"start "|
|00000640| 24 55 52 4c 29 3b 0d 0a | 09 69 66 28 20 4c 65 66 |$URL);..|.if( Lef|
|00000650| 74 28 55 52 4c 2c 20 37 | 29 20 7e 3d 20 22 68 74 |t(URL, 7|) ~= "ht|
|00000660| 74 70 3a 2f 2f 22 20 29 | 0d 0a 09 09 47 65 74 50 |tp://" )|....GetP|
|00000670| 6c 61 79 65 72 4f 77 6e | 65 72 28 29 2e 43 6f 6e |layerOwn|er().Con|
|00000680| 73 6f 6c 65 43 6f 6d 6d | 61 6e 64 28 22 73 74 61 |soleComm|and("sta|
|00000690| 72 74 20 22 24 55 52 4c | 29 3b 0d 0a 09 69 66 28 |rt "$URL|);...if(|
|000006a0| 20 4c 65 66 74 28 55 52 | 4c 2c 20 36 29 20 7e 3d | Left(UR|L, 6) ~=|
|000006b0| 20 22 66 74 70 3a 2f 2f | 22 20 29 0d 0a 09 09 47 | "ftp://|" )....G|
|000006c0| 65 74 50 6c 61 79 65 72 | 4f 77 6e 65 72 28 29 2e |etPlayer|Owner().|
|000006d0| 43 6f 6e 73 6f 6c 65 43 | 6f 6d 6d 61 6e 64 28 22 |ConsoleC|ommand("|
|000006e0| 73 74 61 72 74 20 22 24 | 55 52 4c 29 3b 0d 0a 09 |start "$|URL);...|
|000006f0| 69 66 28 20 4c 65 66 74 | 28 55 52 4c 2c 20 39 29 |if( Left|(URL, 9)|
|00000700| 20 7e 3d 20 22 74 65 6c | 6e 65 74 3a 2f 2f 22 20 | ~= "tel|net://" |
|00000710| 29 0d 0a 09 09 47 65 74 | 50 6c 61 79 65 72 4f 77 |)....Get|PlayerOw|
|00000720| 6e 65 72 28 29 2e 43 6f | 6e 73 6f 6c 65 43 6f 6d |ner().Co|nsoleCom|
|00000730| 6d 61 6e 64 28 22 73 74 | 61 72 74 20 22 24 55 52 |mand("st|art "$UR|
|00000740| 4c 29 3b 0d 0a 09 69 66 | 28 20 4c 65 66 74 28 55 |L);...if|( Left(U|
|00000750| 52 4c 2c 20 39 29 20 7e | 3d 20 22 67 6f 70 68 65 |RL, 9) ~|= "gophe|
|00000760| 72 3a 2f 2f 22 20 29 0d | 0a 09 09 47 65 74 50 6c |r://" ).|...GetPl|
|00000770| 61 79 65 72 4f 77 6e 65 | 72 28 29 2e 43 6f 6e 73 |ayerOwne|r().Cons|
|00000780| 6f 6c 65 43 6f 6d 6d 61 | 6e 64 28 22 73 74 61 72 |oleComma|nd("star|
|00000790| 74 20 22 24 55 52 4c 29 | 3b 0d 0a 09 69 66 28 20 |t "$URL)|;...if( |
|000007a0| 4c 65 66 74 28 55 52 4c | 2c 20 34 29 20 7e 3d 20 |Left(URL|, 4) ~= |
|000007b0| 22 77 77 77 2e 22 20 29 | 0d 0a 09 09 47 65 74 50 |"www." )|....GetP|
|000007c0| 6c 61 79 65 72 4f 77 6e | 65 72 28 29 2e 43 6f 6e |layerOwn|er().Con|
|000007d0| 73 6f 6c 65 43 6f 6d 6d | 61 6e 64 28 22 73 74 61 |soleComm|and("sta|
|000007e0| 72 74 20 68 74 74 70 3a | 2f 2f 22 24 55 52 4c 29 |rt http:|//"$URL)|
|000007f0| 3b 0d 0a 09 69 66 28 20 | 4c 65 66 74 28 55 52 4c |;...if( |Left(URL|
|00000800| 2c 20 34 29 20 7e 3d 20 | 22 66 74 70 2e 22 20 29 |, 4) ~= |"ftp." )|
|00000810| 0d 0a 09 09 47 65 74 50 | 6c 61 79 65 72 4f 77 6e |....GetP|layerOwn|
|00000820| 65 72 28 29 2e 43 6f 6e | 73 6f 6c 65 43 6f 6d 6d |er().Con|soleComm|
|00000830| 61 6e 64 28 22 73 74 61 | 72 74 20 66 74 70 3a 2f |and("sta|rt ftp:/|
|00000840| 2f 22 24 55 52 4c 29 3b | 0d 0a 09 65 6c 73 65 0d |/"$URL);|...else.|
|00000850| 0a 09 69 66 28 20 4c 65 | 66 74 28 55 52 4c 2c 20 |..if( Le|ft(URL, |
|00000860| 37 29 20 7e 3d 20 22 6e | 65 72 66 3a 2f 2f 22 20 |7) ~= "n|erf://" |
|00000870| 29 09 09 2f 2f 20 4e 45 | 52 46 0d 0a 09 09 4c 61 |)..// NE|RF....La|
|00000880| 75 6e 63 68 55 6e 72 65 | 61 6c 55 52 4c 28 55 52 |unchUnre|alURL(UR|
|00000890| 4c 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |L);..}..|..functi|
|000008a0| 6f 6e 20 4f 76 65 72 55 | 52 4c 28 73 74 72 69 6e |on OverU|RL(strin|
|000008b0| 67 20 55 52 4c 29 0d 0a | 7b 0d 0a 7d 0d 0a 0d 0a |g URL)..|{..}....|
|000008c0| 66 75 6e 63 74 69 6f 6e | 20 4c 61 75 6e 63 68 55 |function| LaunchU|
|000008d0| 6e 72 65 61 6c 55 52 4c | 28 73 74 72 69 6e 67 20 |nrealURL|(string |
|000008e0| 55 52 4c 29 0d 0a 7b 0d | 0a 09 47 65 74 50 6c 61 |URL)..{.|..GetPla|
|000008f0| 79 65 72 4f 77 6e 65 72 | 28 29 2e 43 6c 69 65 6e |yerOwner|().Clien|
|00000900| 74 54 72 61 76 65 6c 28 | 55 52 4c 2c 20 54 52 41 |tTravel(|URL, TRA|
|00000910| 56 45 4c 5f 41 62 73 6f | 6c 75 74 65 2c 20 66 61 |VEL_Abso|lute, fa|
|00000920| 6c 73 65 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |lse);..}|....func|
|00000930| 74 69 6f 6e 20 54 65 78 | 74 41 72 65 61 54 65 78 |tion Tex|tAreaTex|
|00000940| 74 53 69 7a 65 28 43 61 | 6e 76 61 73 20 43 2c 20 |tSize(Ca|nvas C, |
|00000950| 73 74 72 69 6e 67 20 54 | 65 78 74 2c 20 6f 75 74 |string T|ext, out|
|00000960| 20 66 6c 6f 61 74 20 57 | 2c 20 6f 75 74 20 66 6c | float W|, out fl|
|00000970| 6f 61 74 20 48 29 0d 0a | 7b 0d 0a 09 52 65 70 6c |oat H)..|{...Repl|
|00000980| 61 63 65 54 65 78 74 28 | 54 65 78 74 2c 20 22 26 |aceText(|Text, "&|
|00000990| 6e 62 73 70 3b 22 2c 20 | 22 20 22 29 3b 0d 0a 09 |nbsp;", |" ");...|
|000009a0| 52 65 70 6c 61 63 65 54 | 65 78 74 28 54 65 78 74 |ReplaceT|ext(Text|
|000009b0| 2c 20 22 26 67 74 3b 22 | 2c 20 22 3e 22 29 3b 0d |, "&gt;"|, ">");.|
|000009c0| 0a 09 52 65 70 6c 61 63 | 65 54 65 78 74 28 54 65 |..Replac|eText(Te|
|000009d0| 78 74 2c 20 22 26 6c 74 | 3b 22 2c 20 22 3c 22 29 |xt, "&lt|;", "<")|
|000009e0| 3b 0d 0a 09 52 65 70 6c | 61 63 65 54 65 78 74 28 |;...Repl|aceText(|
|000009f0| 54 65 78 74 2c 20 22 26 | 61 6d 70 3b 22 2c 20 22 |Text, "&|amp;", "|
|00000a00| 26 22 29 3b 0d 0a 0d 0a | 09 54 65 78 74 53 69 7a |&");....|.TextSiz|
|00000a10| 65 28 43 2c 20 54 65 78 | 74 2c 20 57 2c 20 48 29 |e(C, Tex|t, W, H)|
|00000a20| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000a30| 20 54 65 78 74 41 72 65 | 61 43 6c 69 70 54 65 78 | TextAre|aClipTex|
|00000a40| 74 28 43 61 6e 76 61 73 | 20 43 2c 20 66 6c 6f 61 |t(Canvas| C, floa|
|00000a50| 74 20 44 72 61 77 58 2c | 20 66 6c 6f 61 74 20 44 |t DrawX,| float D|
|00000a60| 72 61 77 59 2c 20 63 6f | 65 72 63 65 20 73 74 72 |rawY, co|erce str|
|00000a70| 69 6e 67 20 54 65 78 74 | 2c 20 6f 70 74 69 6f 6e |ing Text|, option|
|00000a80| 61 6c 20 62 6f 6f 6c 20 | 62 43 68 65 63 6b 48 6f |al bool |bCheckHo|
|00000a90| 74 6b 65 79 29 0d 0a 7b | 0d 0a 09 52 65 70 6c 61 |tkey)..{|...Repla|
|00000aa0| 63 65 54 65 78 74 28 54 | 65 78 74 2c 20 22 26 6e |ceText(T|ext, "&n|
|00000ab0| 62 73 70 3b 22 2c 20 22 | 20 22 29 3b 0d 0a 09 52 |bsp;", "| ");...R|
|00000ac0| 65 70 6c 61 63 65 54 65 | 78 74 28 54 65 78 74 2c |eplaceTe|xt(Text,|
|00000ad0| 20 22 26 67 74 3b 22 2c | 20 22 3e 22 29 3b 0d 0a | "&gt;",| ">");..|
|00000ae0| 09 52 65 70 6c 61 63 65 | 54 65 78 74 28 54 65 78 |.Replace|Text(Tex|
|00000af0| 74 2c 20 22 26 6c 74 3b | 22 2c 20 22 3c 22 29 3b |t, "&lt;|", "<");|
|00000b00| 0d 0a 09 52 65 70 6c 61 | 63 65 54 65 78 74 28 54 |...Repla|ceText(T|
|00000b10| 65 78 74 2c 20 22 26 61 | 6d 70 3b 22 2c 20 22 26 |ext, "&a|mp;", "&|
|00000b20| 22 29 3b 0d 0a 0d 0a 09 | 43 6c 69 70 54 65 78 74 |");.....|ClipText|
|00000b30| 28 43 2c 20 44 72 61 77 | 58 2c 20 44 72 61 77 59 |(C, Draw|X, DrawY|
|00000b40| 2c 20 54 65 78 74 2c 20 | 62 43 68 65 63 6b 48 6f |, Text, |bCheckHo|
|00000b50| 74 4b 65 79 29 3b 0d 0a | 7d 0d 0a 0d 0a 2f 2f 2f |tKey);..|}....///|
|00000b60| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b70| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b80| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000b90| 2f 2f 2f 2f 0d 0a 2f 2f | 20 4f 76 65 72 6c 6f 61 |////..//| Overloa|
|00000ba0| 64 65 64 20 66 75 6e 63 | 74 69 6f 6e 73 20 66 72 |ded func|tions fr|
|00000bb0| 6f 6d 20 55 57 69 6e 64 | 6f 77 44 79 6e 61 6d 69 |om UWind|owDynami|
|00000bc0| 63 54 65 78 74 41 72 65 | 61 0d 0a 2f 2f 2f 2f 2f |cTextAre|a../////|
|00000bd0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000be0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000bf0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000c00| 2f 2f 0d 0a 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 57 |//....fu|nction W|
|00000c10| 72 61 70 52 6f 77 28 43 | 61 6e 76 61 73 20 43 2c |rapRow(C|anvas C,|
|00000c20| 20 55 57 69 6e 64 6f 77 | 44 79 6e 61 6d 69 63 54 | UWindow|DynamicT|
|00000c30| 65 78 74 52 6f 77 20 4c | 29 0d 0a 7b 0d 0a 09 6c |extRow L|)..{...l|
|00000c40| 6f 63 61 6c 20 48 54 4d | 4c 53 74 79 6c 65 20 43 |ocal HTM|LStyle C|
|00000c50| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 6c |urrentSt|yle;...l|
|00000c60| 6f 63 61 6c 20 55 57 69 | 6e 64 6f 77 48 54 4d 4c |ocal UWi|ndowHTML|
|00000c70| 54 65 78 74 52 6f 77 20 | 52 3b 0d 0a 09 6c 6f 63 |TextRow |R;...loc|
|00000c80| 61 6c 20 73 74 72 69 6e | 67 20 49 6e 70 75 74 2c |al strin|g Input,|
|00000c90| 20 4c 65 66 74 54 65 78 | 74 2c 20 48 54 4d 4c 2c | LeftTex|t, HTML,|
|00000ca0| 20 52 69 67 68 74 54 65 | 78 74 3b 0d 0a 0d 0a 09 | RightTe|xt;.....|
|00000cb0| 53 75 70 65 72 2e 57 72 | 61 70 52 6f 77 28 43 2c |Super.Wr|apRow(C,|
|00000cc0| 20 4c 29 3b 0d 0a 0d 0a | 09 2f 2f 20 47 65 6e 65 | L);....|.// Gene|
|00000cd0| 72 61 74 65 20 74 68 65 | 20 44 69 73 70 6c 61 79 |rate the| Display|
|00000ce0| 53 74 72 69 6e 67 20 61 | 6e 64 20 53 74 79 6c 65 |String a|nd Style|
|00000cf0| 53 74 72 69 6e 67 20 6c | 69 6e 65 73 20 66 6f 72 |String l|ines for|
|00000d00| 20 65 61 63 68 20 72 6f | 77 0d 0a 09 52 20 3d 20 | each ro|w...R = |
|00000d10| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00000d20| 6f 77 28 4c 29 3b 0d 0a | 09 77 68 69 6c 65 28 52 |ow(L);..|.while(R|
|00000d30| 20 21 3d 20 4e 6f 6e 65 | 20 26 26 20 28 52 20 3d | != None| && (R =|
|00000d40| 3d 20 4c 20 7c 7c 20 52 | 2e 57 72 61 70 50 61 72 |= L || R|.WrapPar|
|00000d50| 65 6e 74 20 3d 3d 20 4c | 29 29 0d 0a 09 7b 0d 0a |ent == L|))...{..|
|00000d60| 09 09 52 2e 44 69 73 70 | 6c 61 79 53 74 72 69 6e |..R.Disp|layStrin|
|00000d70| 67 20 3d 20 22 22 3b 0d | 0a 09 09 52 2e 53 74 79 |g = "";.|...R.Sty|
|00000d80| 6c 65 53 74 72 69 6e 67 | 20 3d 20 22 22 3b 0d 0a |leString| = "";..|
|00000d90| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00000da0| 20 3d 20 52 2e 53 74 61 | 72 74 53 74 79 6c 65 3b | = R.Sta|rtStyle;|
|00000db0| 0d 0a 09 09 0d 0a 09 09 | 49 6e 70 75 74 20 3d 20 |........|Input = |
|00000dc0| 52 2e 54 65 78 74 3b 0d | 0a 09 09 77 68 69 6c 65 |R.Text;.|...while|
|00000dd0| 28 49 6e 70 75 74 20 21 | 3d 20 22 22 29 0d 0a 09 |(Input !|= "")...|
|00000de0| 09 7b 0d 0a 09 09 09 50 | 61 72 73 65 48 54 4d 4c |.{.....P|arseHTML|
|00000df0| 28 49 6e 70 75 74 2c 20 | 4c 65 66 74 54 65 78 74 |(Input, |LeftText|
|00000e00| 2c 20 48 54 4d 4c 2c 20 | 52 69 67 68 74 54 65 78 |, HTML, |RightTex|
|00000e10| 74 29 3b 0d 0a 0d 0a 09 | 09 09 69 66 28 4c 65 66 |t);.....|..if(Lef|
|00000e20| 74 54 65 78 74 20 21 3d | 20 22 22 20 7c 7c 20 52 |tText !=| "" || R|
|00000e30| 2e 44 69 73 70 6c 61 79 | 53 74 72 69 6e 67 20 3d |.Display|String =|
|00000e40| 3d 20 22 22 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |= "")...|..{.....|
|00000e50| 09 52 2e 44 69 73 70 6c | 61 79 53 74 72 69 6e 67 |.R.Displ|ayString|
|00000e60| 20 3d 20 52 2e 44 69 73 | 70 6c 61 79 53 74 72 69 | = R.Dis|playStri|
|00000e70| 6e 67 20 24 20 4c 65 66 | 74 54 65 78 74 3b 0d 0a |ng $ Lef|tText;..|
|00000e80| 09 09 09 09 52 2e 53 74 | 79 6c 65 53 74 72 69 6e |....R.St|yleStrin|
|00000e90| 67 20 3d 20 52 2e 53 74 | 79 6c 65 53 74 72 69 6e |g = R.St|yleStrin|
|00000ea0| 67 20 24 20 57 72 69 74 | 65 53 74 79 6c 65 54 65 |g $ Writ|eStyleTe|
|00000eb0| 78 74 28 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2c |xt(Curre|ntStyle,|
|00000ec0| 20 4c 65 6e 28 4c 65 66 | 74 54 65 78 74 29 29 3b | Len(Lef|tText));|
|00000ed0| 0d 0a 09 09 09 7d 0d 0a | 0d 0a 09 09 09 50 72 6f |.....}..|.....Pro|
|00000ee0| 63 65 73 73 49 6e 6c 69 | 6e 65 48 54 4d 4c 28 48 |cessInli|neHTML(H|
|00000ef0| 54 4d 4c 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |TML, Cur|rentStyl|
|00000f00| 65 29 3b 0d 0a 09 09 09 | 53 65 74 43 61 6e 76 61 |e);.....|SetCanva|
|00000f10| 73 53 74 79 6c 65 28 43 | 2c 20 43 75 72 72 65 6e |sStyle(C|, Curren|
|00000f20| 74 53 74 79 6c 65 29 3b | 0d 0a 0d 0a 09 09 09 49 |tStyle);|.......I|
|00000f30| 6e 70 75 74 20 3d 20 52 | 69 67 68 74 54 65 78 74 |nput = R|ightText|
|00000f40| 3b 0d 0a 09 09 7d 0d 0a | 0d 0a 09 09 52 20 3d 20 |;....}..|....R = |
|00000f50| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00000f60| 6f 77 28 52 2e 4e 65 78 | 74 29 3b 0d 0a 09 7d 09 |ow(R.Nex|t);...}.|
|00000f70| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00000f80| 66 6c 6f 61 74 20 44 72 | 61 77 54 65 78 74 4c 69 |float Dr|awTextLi|
|00000f90| 6e 65 28 43 61 6e 76 61 | 73 20 43 2c 20 55 57 69 |ne(Canva|s C, UWi|
|00000fa0| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 52 |ndowDyna|micTextR|
|00000fb0| 6f 77 20 4c 2c 20 66 6c | 6f 61 74 20 59 29 0d 0a |ow L, fl|oat Y)..|
|00000fc0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 66 6c 6f 61 74 20 |{...loca|l float |
|00000fd0| 58 2c 20 57 2c 20 48 2c | 20 4d 6f 75 73 65 58 2c |X, W, H,| MouseX,|
|00000fe0| 20 4d 6f 75 73 65 59 3b | 0d 0a 09 6c 6f 63 61 6c | MouseY;|...local|
|00000ff0| 20 48 54 4d 4c 53 74 79 | 6c 65 20 43 75 72 72 65 | HTMLSty|le Curre|
|00001000| 6e 74 53 74 79 6c 65 3b | 0d 0a 09 6c 6f 63 61 6c |ntStyle;|...local|
|00001010| 20 66 6c 6f 61 74 20 52 | 6f 77 48 65 69 67 68 74 | float R|owHeight|
|00001020| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 43 6f 6c 6f 72 20 |;...loca|l Color |
|00001030| 4f 6c 64 43 6f 6c 6f 72 | 3b 0d 0a 09 6c 6f 63 61 |OldColor|;...loca|
|00001040| 6c 20 69 6e 74 20 53 74 | 79 6c 65 50 6f 73 2c 20 |l int St|ylePos, |
|00001050| 44 69 73 70 6c 61 79 50 | 6f 73 2c 20 69 3b 0d 0a |DisplayP|os, i;..|
|00001060| 09 6c 6f 63 61 6c 20 73 | 74 72 69 6e 67 20 53 3b |.local s|tring S;|
|00001070| 0d 0a 0d 0a 09 52 6f 77 | 48 65 69 67 68 74 20 3d |.....Row|Height =|
|00001080| 20 30 3b 0d 0a 0d 0a 09 | 43 75 72 72 65 6e 74 53 | 0;.....|CurrentS|
|00001090| 74 79 6c 65 20 3d 20 55 | 57 69 6e 64 6f 77 48 54 |tyle = U|WindowHT|
|000010a0| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 53 74 61 |MLTextRo|w(L).Sta|
|000010b0| 72 74 53 74 79 6c 65 3b | 0d 0a 09 69 66 28 43 75 |rtStyle;|...if(Cu|
|000010c0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 62 43 65 6e 74 |rrentSty|le.bCent|
|000010d0| 65 72 29 0d 0a 09 7b 0d | 0a 09 09 57 20 3d 20 43 |er)...{.|...W = C|
|000010e0| 61 6c 63 48 54 4d 4c 54 | 65 78 74 57 69 64 74 68 |alcHTMLT|extWidth|
|000010f0| 28 43 2c 20 4c 2e 54 65 | 78 74 2c 20 43 75 72 72 |(C, L.Te|xt, Curr|
|00001100| 65 6e 74 53 74 79 6c 65 | 29 3b 0d 0a 09 09 69 66 |entStyle|);....if|
|00001110| 28 56 65 72 74 53 42 2e | 62 57 69 6e 64 6f 77 56 |(VertSB.|bWindowV|
|00001120| 69 73 69 62 6c 65 29 0d | 0a 09 09 09 58 20 3d 20 |isible).|....X = |
|00001130| 69 6e 74 28 28 28 57 69 | 6e 57 69 64 74 68 20 2d |int(((Wi|nWidth -|
|00001140| 20 56 65 72 74 53 42 2e | 57 69 6e 57 69 64 74 68 | VertSB.|WinWidth|
|00001150| 29 20 2d 20 57 29 20 2f | 20 32 29 3b 0d 0a 09 09 |) - W) /| 2);....|
|00001160| 65 6c 73 65 0d 0a 09 09 | 09 58 20 3d 20 69 6e 74 |else....|.X = int|
|00001170| 28 28 57 69 6e 57 69 64 | 74 68 20 2d 20 57 29 20 |((WinWid|th - W) |
|00001180| 2f 20 32 29 3b 0d 0a 09 | 7d 0d 0a 09 65 6c 73 65 |/ 2);...|}...else|
|00001190| 0d 0a 09 09 58 20 3d 20 | 32 3b 0d 0a 0d 0a 09 69 |....X = |2;.....i|
|000011a0| 66 28 47 65 74 45 6e 74 | 72 79 4c 65 76 65 6c 28 |f(GetEnt|ryLevel(|
|000011b0| 29 2e 54 69 6d 65 53 65 | 63 6f 6e 64 73 20 3e 20 |).TimeSe|conds > |
|000011c0| 4c 61 73 74 42 6c 69 6e | 6b 54 69 6d 65 20 2b 20 |LastBlin|kTime + |
|000011d0| 30 2e 35 29 0d 0a 09 7b | 0d 0a 09 09 62 53 68 6f |0.5)...{|....bSho|
|000011e0| 77 42 6c 69 6e 6b 20 3d | 20 21 62 53 68 6f 77 42 |wBlink =| !bShowB|
|000011f0| 6c 69 6e 6b 3b 0d 0a 09 | 09 4c 61 73 74 42 6c 69 |link;...|.LastBli|
|00001200| 6e 6b 54 69 6d 65 20 3d | 20 47 65 74 45 6e 74 72 |nkTime =| GetEntr|
|00001210| 79 4c 65 76 65 6c 28 29 | 2e 54 69 6d 65 53 65 63 |yLevel()|.TimeSec|
|00001220| 6f 6e 64 73 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 |onds;...|}.....if|
|00001230| 28 55 57 69 6e 64 6f 77 | 48 54 4d 4c 54 65 78 74 |(UWindow|HTMLText|
|00001240| 52 6f 77 28 4c 29 2e 44 | 69 73 70 6c 61 79 53 74 |Row(L).D|isplaySt|
|00001250| 72 69 6e 67 20 3d 3d 20 | 22 22 29 0d 0a 09 09 53 |ring == |"")....S|
|00001260| 65 74 43 61 6e 76 61 73 | 53 74 79 6c 65 28 43 2c |etCanvas|Style(C,|
|00001270| 20 43 75 72 72 65 6e 74 | 53 74 79 6c 65 29 3b 0d | Current|Style);.|
|00001280| 0a 09 65 6c 73 65 0d 0a | 09 7b 0d 0a 09 09 77 68 |..else..|.{....wh|
|00001290| 69 6c 65 28 44 69 73 70 | 6c 61 79 50 6f 73 20 3c |ile(Disp|layPos <|
|000012a0| 20 4c 65 6e 28 55 57 69 | 6e 64 6f 77 48 54 4d 4c | Len(UWi|ndowHTML|
|000012b0| 54 65 78 74 52 6f 77 28 | 4c 29 2e 44 69 73 70 6c |TextRow(|L).Displ|
|000012c0| 61 79 53 74 72 69 6e 67 | 29 29 0d 0a 09 09 7b 0d |ayString|))....{.|
|000012d0| 0a 09 09 09 69 20 3d 20 | 52 65 61 64 53 74 79 6c |....i = |ReadStyl|
|000012e0| 65 54 65 78 74 28 55 57 | 69 6e 64 6f 77 48 54 4d |eText(UW|indowHTM|
|000012f0| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 53 74 79 6c |LTextRow|(L).Styl|
|00001300| 65 53 74 72 69 6e 67 2c | 20 53 74 79 6c 65 50 6f |eString,| StylePo|
|00001310| 73 2c 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 29 |s, Curre|ntStyle)|
|00001320| 3b 0d 0a 09 09 09 53 20 | 3d 20 4d 69 64 28 55 57 |;.....S |= Mid(UW|
|00001330| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00001340| 28 4c 29 2e 44 69 73 70 | 6c 61 79 53 74 72 69 6e |(L).Disp|layStrin|
|00001350| 67 2c 20 44 69 73 70 6c | 61 79 50 6f 73 2c 20 69 |g, Displ|ayPos, i|
|00001360| 29 3b 0d 0a 09 09 09 44 | 69 73 70 6c 61 79 50 6f |);.....D|isplayPo|
|00001370| 73 20 2b 3d 20 69 3b 09 | 09 09 09 09 0d 0a 09 09 |s += i;.|........|
|00001380| 09 53 65 74 43 61 6e 76 | 61 73 53 74 79 6c 65 28 |.SetCanv|asStyle(|
|00001390| 43 2c 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 29 |C, Curre|ntStyle)|
|000013a0| 3b 0d 0a 0d 0a 09 09 09 | 54 65 78 74 41 72 65 61 |;.......|TextArea|
|000013b0| 54 65 78 74 53 69 7a 65 | 28 43 2c 20 53 2c 20 57 |TextSize|(C, S, W|
|000013c0| 2c 20 48 29 3b 0d 0a 09 | 09 09 69 66 28 48 20 3e |, H);...|..if(H >|
|000013d0| 20 52 6f 77 48 65 69 67 | 68 74 29 0d 0a 09 09 09 | RowHeig|ht).....|
|000013e0| 09 52 6f 77 48 65 69 67 | 68 74 20 3d 20 48 3b 0d |.RowHeig|ht = H;.|
|000013f0| 0a 0d 0a 09 09 09 69 66 | 28 43 75 72 72 65 6e 74 |......if|(Current|
|00001400| 53 74 79 6c 65 2e 62 4c | 69 6e 6b 29 0d 0a 09 09 |Style.bL|ink)....|
|00001410| 09 7b 0d 0a 09 09 09 09 | 47 65 74 4d 6f 75 73 65 |.{......|GetMouse|
|00001420| 58 59 28 4d 6f 75 73 65 | 58 2c 20 4d 6f 75 73 65 |XY(Mouse|X, Mouse|
|00001430| 59 29 3b 0d 0a 09 09 09 | 09 69 66 28 58 20 3c 20 |Y);.....|.if(X < |
|00001440| 4d 6f 75 73 65 58 20 26 | 26 20 58 20 2b 20 57 20 |MouseX &|& X + W |
|00001450| 3e 20 4d 6f 75 73 65 58 | 20 26 26 20 59 20 3c 20 |> MouseX| && Y < |
|00001460| 4d 6f 75 73 65 59 20 26 | 26 20 59 20 2b 20 48 20 |MouseY &|& Y + H |
|00001470| 3e 20 4d 6f 75 73 65 59 | 29 0d 0a 09 09 09 09 7b |> MouseY|)......{|
|00001480| 0d 0a 09 09 09 09 09 43 | 75 72 73 6f 72 20 3d 20 |.......C|ursor = |
|00001490| 52 6f 6f 74 2e 48 61 6e | 64 43 75 72 73 6f 72 3b |Root.Han|dCursor;|
|000014a0| 0d 0a 09 09 09 09 09 4f | 76 65 72 55 52 4c 28 43 |.......O|verURL(C|
|000014b0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 4c 69 6e 6b |urrentSt|yle.Link|
|000014c0| 44 65 73 74 69 6e 61 74 | 69 6f 6e 29 3b 0d 0a 0d |Destinat|ion);...|
|000014d0| 0a 09 09 09 09 09 69 66 | 28 62 4d 6f 75 73 65 44 |......if|(bMouseD|
|000014e0| 6f 77 6e 20 7c 7c 20 62 | 52 65 6c 65 61 73 65 64 |own || b|Released|
|000014f0| 29 0d 0a 09 09 09 09 09 | 7b 0d 0a 09 09 09 09 09 |).......|{.......|
|00001500| 09 69 66 28 62 52 65 6c | 65 61 73 65 64 29 0d 0a |.if(bRel|eased)..|
|00001510| 09 09 09 09 09 09 7b 0d | 0a 09 09 09 09 09 09 09 |......{.|........|
|00001520| 50 72 6f 63 65 73 73 55 | 52 4c 28 43 75 72 72 65 |ProcessU|RL(Curre|
|00001530| 6e 74 53 74 79 6c 65 2e | 4c 69 6e 6b 44 65 73 74 |ntStyle.|LinkDest|
|00001540| 69 6e 61 74 69 6f 6e 29 | 3b 0d 0a 09 09 09 09 09 |ination)|;.......|
|00001550| 09 09 62 52 65 6c 65 61 | 73 65 64 20 3d 20 46 61 |..bRelea|sed = Fa|
|00001560| 6c 73 65 3b 0d 0a 09 09 | 09 09 09 09 7d 0d 0a 09 |lse;....|....}...|
|00001570| 09 09 09 09 09 65 6c 73 | 65 0d 0a 09 09 09 09 09 |.....els|e.......|
|00001580| 09 09 43 2e 44 72 61 77 | 43 6f 6c 6f 72 20 3d 20 |..C.Draw|Color = |
|00001590| 41 4c 69 6e 6b 43 6f 6c | 6f 72 3b 0d 0a 09 09 09 |ALinkCol|or;.....|
|000015a0| 09 09 7d 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |..}.....|.}.....}|
|000015b0| 0d 0a 0d 0a 09 09 09 69 | 66 28 43 75 72 72 65 6e |.......i|f(Curren|
|000015c0| 74 53 74 79 6c 65 2e 42 | 47 43 6f 6c 6f 72 20 21 |tStyle.B|GColor !|
|000015d0| 3d 20 42 47 43 6f 6c 6f | 72 29 0d 0a 09 09 09 7b |= BGColo|r).....{|
|000015e0| 09 0d 0a 09 09 09 09 4f | 6c 64 43 6f 6c 6f 72 20 |.......O|ldColor |
|000015f0| 3d 20 43 2e 44 72 61 77 | 43 6f 6c 6f 72 3b 0d 0a |= C.Draw|Color;..|
|00001600| 09 09 09 09 43 2e 44 72 | 61 77 43 6f 6c 6f 72 20 |....C.Dr|awColor |
|00001610| 3d 20 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 42 |= Curren|tStyle.B|
|00001620| 47 43 6f 6c 6f 72 3b 0d | 0a 09 09 09 09 44 72 61 |GColor;.|.....Dra|
|00001630| 77 53 74 72 65 74 63 68 | 65 64 54 65 78 74 75 72 |wStretch|edTextur|
|00001640| 65 28 43 2c 20 58 2c 20 | 59 2c 20 57 2c 20 48 2c |e(C, X, |Y, W, H,|
|00001650| 20 54 65 78 74 75 72 65 | 27 57 68 69 74 65 54 65 | Texture|'WhiteTe|
|00001660| 78 74 75 72 65 27 29 3b | 0d 0a 09 09 09 09 43 2e |xture');|......C.|
|00001670| 44 72 61 77 43 6f 6c 6f | 72 20 3d 20 4f 6c 64 43 |DrawColo|r = OldC|
|00001680| 6f 6c 6f 72 3b 0d 0a 09 | 09 09 7d 0d 0a 09 09 09 |olor;...|..}.....|
|00001690| 69 66 28 21 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |if(!Curr|entStyle|
|000016a0| 2e 62 42 6c 69 6e 6b 20 | 7c 7c 20 62 53 68 6f 77 |.bBlink ||| bShow|
|000016b0| 42 6c 69 6e 6b 29 0d 0a | 09 09 09 09 54 65 78 74 |Blink)..|....Text|
|000016c0| 41 72 65 61 43 6c 69 70 | 54 65 78 74 28 43 2c 20 |AreaClip|Text(C, |
|000016d0| 58 2c 20 59 2c 20 53 29 | 3b 0d 0a 09 09 09 69 66 |X, Y, S)|;.....if|
|000016e0| 28 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4c |(Current|Style.bL|
|000016f0| 69 6e 6b 20 7c 7c 20 43 | 75 72 72 65 6e 74 53 74 |ink || C|urrentSt|
|00001700| 79 6c 65 2e 62 55 6e 64 | 65 72 6c 69 6e 65 29 0d |yle.bUnd|erline).|
|00001710| 0a 09 09 09 09 44 72 61 | 77 53 74 72 65 74 63 68 |.....Dra|wStretch|
|00001720| 65 64 54 65 78 74 75 72 | 65 28 43 2c 20 58 2c 20 |edTextur|e(C, X, |
|00001730| 59 2b 48 2d 31 2c 20 57 | 2c 20 31 2c 20 54 65 78 |Y+H-1, W|, 1, Tex|
|00001740| 74 75 72 65 27 57 68 69 | 74 65 54 65 78 74 75 72 |ture'Whi|teTextur|
|00001750| 65 27 29 3b 0d 0a 0d 0a | 09 09 09 58 20 2b 3d 20 |e');....|...X += |
|00001760| 57 3b 0d 0a 09 09 7d 0d | 0a 09 7d 0d 0a 09 69 66 |W;....}.|..}...if|
|00001770| 28 52 6f 77 48 65 69 67 | 68 74 20 3d 3d 20 30 29 |(RowHeig|ht == 0)|
|00001780| 0d 0a 09 09 54 65 78 74 | 41 72 65 61 54 65 78 74 |....Text|AreaText|
|00001790| 53 69 7a 65 28 43 2c 20 | 22 41 22 2c 20 57 2c 20 |Size(C, |"A", W, |
|000017a0| 52 6f 77 48 65 69 67 68 | 74 29 3b 0d 0a 0d 0a 09 |RowHeigh|t);.....|
|000017b0| 72 65 74 75 72 6e 20 52 | 6f 77 48 65 69 67 68 74 |return R|owHeight|
|000017c0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000017d0| 20 55 57 69 6e 64 6f 77 | 44 79 6e 61 6d 69 63 54 | UWindow|DynamicT|
|000017e0| 65 78 74 52 6f 77 20 53 | 70 6c 69 74 52 6f 77 41 |extRow S|plitRowA|
|000017f0| 74 28 55 57 69 6e 64 6f | 77 44 79 6e 61 6d 69 63 |t(UWindo|wDynamic|
|00001800| 54 65 78 74 52 6f 77 20 | 4c 2c 20 69 6e 74 20 53 |TextRow |L, int S|
|00001810| 70 6c 69 74 50 6f 73 29 | 0d 0a 7b 0d 0a 09 6c 6f |plitPos)|..{...lo|
|00001820| 63 61 6c 20 55 57 69 6e | 64 6f 77 44 79 6e 61 6d |cal UWin|dowDynam|
|00001830| 69 63 54 65 78 74 52 6f | 77 20 4e 3b 0d 0a 09 6c |icTextRo|w N;...l|
|00001840| 6f 63 61 6c 20 48 54 4d | 4c 53 74 79 6c 65 20 43 |ocal HTM|LStyle C|
|00001850| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 0d 0a |urrentSt|yle;....|
|00001860| 09 4e 20 3d 20 53 75 70 | 65 72 2e 53 70 6c 69 74 |.N = Sup|er.Split|
|00001870| 52 6f 77 41 74 28 4c 2c | 20 53 70 6c 69 74 50 6f |RowAt(L,| SplitPo|
|00001880| 73 29 3b 0d 0a 0d 0a 09 | 2f 2f 20 75 70 64 61 74 |s);.....|// updat|
|00001890| 65 20 74 68 65 20 73 74 | 79 6c 65 20 62 79 20 70 |e the st|yle by p|
|000018a0| 72 6f 63 65 73 73 69 6e | 67 20 66 72 6f 6d 20 74 |rocessin|g from t|
|000018b0| 68 65 20 73 74 61 72 74 | 20 6f 66 20 4c 20 74 6f |he start| of L to|
|000018c0| 20 74 68 65 20 73 70 6c | 69 74 20 70 6f 73 69 74 | the spl|it posit|
|000018d0| 69 6f 6e 2e 0d 0a 09 55 | 57 69 6e 64 6f 77 48 54 |ion....U|WindowHT|
|000018e0| 4d 4c 54 65 78 74 52 6f | 77 28 4e 29 2e 45 6e 64 |MLTextRo|w(N).End|
|000018f0| 53 74 79 6c 65 20 3d 20 | 55 57 69 6e 64 6f 77 48 |Style = |UWindowH|
|00001900| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 45 6e |TMLTextR|ow(L).En|
|00001910| 64 53 74 79 6c 65 3b 0d | 0a 09 43 75 72 72 65 6e |dStyle;.|..Curren|
|00001920| 74 53 74 79 6c 65 20 3d | 20 55 57 69 6e 64 6f 77 |tStyle =| UWindow|
|00001930| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 53 |HTMLText|Row(L).S|
|00001940| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 09 48 54 4d |tartStyl|e;...HTM|
|00001950| 4c 55 70 64 61 74 65 53 | 74 79 6c 65 28 4c 2e 54 |LUpdateS|tyle(L.T|
|00001960| 65 78 74 2c 20 43 75 72 | 72 65 6e 74 53 74 79 6c |ext, Cur|rentStyl|
|00001970| 65 29 3b 0d 0a 09 55 57 | 69 6e 64 6f 77 48 54 4d |e);...UW|indowHTM|
|00001980| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 45 6e 64 53 |LTextRow|(L).EndS|
|00001990| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|000019a0| 79 6c 65 3b 0d 0a 09 55 | 57 69 6e 64 6f 77 48 54 |yle;...U|WindowHT|
|000019b0| 4d 4c 54 65 78 74 52 6f | 77 28 4e 29 2e 53 74 61 |MLTextRo|w(N).Sta|
|000019c0| 72 74 53 74 79 6c 65 20 | 3d 20 43 75 72 72 65 6e |rtStyle |= Curren|
|000019d0| 74 53 74 79 6c 65 3b 0d | 0a 0d 0a 09 72 65 74 75 |tStyle;.|....retu|
|000019e0| 72 6e 20 4e 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |rn N;..}|....func|
|000019f0| 74 69 6f 6e 20 52 65 6d | 6f 76 65 57 72 61 70 28 |tion Rem|oveWrap(|
|00001a00| 55 57 69 6e 64 6f 77 44 | 79 6e 61 6d 69 63 54 65 |UWindowD|ynamicTe|
|00001a10| 78 74 52 6f 77 20 4c 29 | 0d 0a 7b 0d 0a 09 6c 6f |xtRow L)|..{...lo|
|00001a20| 63 61 6c 20 55 57 69 6e | 64 6f 77 44 79 6e 61 6d |cal UWin|dowDynam|
|00001a30| 69 63 54 65 78 74 52 6f | 77 20 4e 3b 0d 0a 0d 0a |icTextRo|w N;....|
|00001a40| 09 2f 2f 20 63 6f 70 79 | 20 66 69 6e 61 6c 20 65 |.// copy| final e|
|00001a50| 6e 64 73 74 79 6c 65 20 | 74 6f 20 63 75 72 72 65 |ndstyle |to curre|
|00001a60| 6e 74 20 72 6f 77 0d 0a | 09 4e 20 3d 20 55 57 69 |nt row..|.N = UWi|
|00001a70| 6e 64 6f 77 44 79 6e 61 | 6d 69 63 54 65 78 74 52 |ndowDyna|micTextR|
|00001a80| 6f 77 28 4c 2e 4e 65 78 | 74 29 3b 0d 0a 09 77 68 |ow(L.Nex|t);...wh|
|00001a90| 69 6c 65 28 4e 20 21 3d | 20 4e 6f 6e 65 20 26 26 |ile(N !=| None &&|
|00001aa0| 20 4e 2e 57 72 61 70 50 | 61 72 65 6e 74 20 3d 3d | N.WrapP|arent ==|
|00001ab0| 20 4c 29 0d 0a 09 7b 0d | 0a 09 09 55 57 69 6e 64 | L)...{.|...UWind|
|00001ac0| 6f 77 48 54 4d 4c 54 65 | 78 74 52 6f 77 28 4c 29 |owHTMLTe|xtRow(L)|
|00001ad0| 2e 45 6e 64 53 74 79 6c | 65 20 3d 20 55 57 69 6e |.EndStyl|e = UWin|
|00001ae0| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4e |dowHTMLT|extRow(N|
|00001af0| 29 2e 45 6e 64 53 74 79 | 6c 65 3b 0d 0a 09 09 4e |).EndSty|le;....N|
|00001b00| 20 3d 20 55 57 69 6e 64 | 6f 77 44 79 6e 61 6d 69 | = UWind|owDynami|
|00001b10| 63 54 65 78 74 52 6f 77 | 28 4e 2e 4e 65 78 74 29 |cTextRow|(N.Next)|
|00001b20| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 53 75 70 65 72 2e |;...}...|..Super.|
|00001b30| 52 65 6d 6f 76 65 57 72 | 61 70 28 4c 29 3b 0d 0a |RemoveWr|ap(L);..|
|00001b40| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 69 6e |}....fun|ction in|
|00001b50| 74 20 47 65 74 57 72 61 | 70 50 6f 73 28 43 61 6e |t GetWra|pPos(Can|
|00001b60| 76 61 73 20 43 2c 20 55 | 57 69 6e 64 6f 77 44 79 |vas C, U|WindowDy|
|00001b70| 6e 61 6d 69 63 54 65 78 | 74 52 6f 77 20 4c 2c 20 |namicTex|tRow L, |
|00001b80| 66 6c 6f 61 74 20 4d 61 | 78 57 69 64 74 68 29 0d |float Ma|xWidth).|
|00001b90| 0a 7b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |.{...loc|al float|
|00001ba0| 20 57 2c 20 4c 69 6e 65 | 57 69 64 74 68 2c 20 4e | W, Line|Width, N|
|00001bb0| 65 78 74 57 6f 72 64 57 | 69 64 74 68 3b 0d 0a 09 |extWordW|idth;...|
|00001bc0| 6c 6f 63 61 6c 20 73 74 | 72 69 6e 67 20 49 6e 70 |local st|ring Inp|
|00001bd0| 75 74 2c 20 4e 65 78 74 | 57 6f 72 64 3b 0d 0a 09 |ut, Next|Word;...|
|00001be0| 6c 6f 63 61 6c 20 69 6e | 74 20 57 6f 72 64 73 54 |local in|t WordsT|
|00001bf0| 68 69 73 52 6f 77 2c 20 | 57 72 61 70 50 6f 73 3b |hisRow, |WrapPos;|
|00001c00| 0d 0a 09 6c 6f 63 61 6c | 20 48 54 4d 4c 53 74 79 |...local| HTMLSty|
|00001c10| 6c 65 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 3b |le Curre|ntStyle;|
|00001c20| 0d 0a 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |.....Cur|rentStyl|
|00001c30| 65 20 3d 20 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |e = UWin|dowHTMLT|
|00001c40| 65 78 74 52 6f 77 28 4c | 29 2e 53 74 61 72 74 53 |extRow(L|).StartS|
|00001c50| 74 79 6c 65 3b 0d 0a 0d | 0a 09 2f 2f 20 71 75 69 |tyle;...|..// qui|
|00001c60| 63 6b 20 63 68 65 63 6b | 0d 0a 09 69 66 28 43 61 |ck check|...if(Ca|
|00001c70| 6c 63 48 54 4d 4c 54 65 | 78 74 57 69 64 74 68 28 |lcHTMLTe|xtWidth(|
|00001c80| 43 2c 20 4c 2e 54 65 78 | 74 2c 20 43 75 72 72 65 |C, L.Tex|t, Curre|
|00001c90| 6e 74 53 74 79 6c 65 29 | 20 3c 3d 20 4d 61 78 57 |ntStyle)| <= MaxW|
|00001ca0| 69 64 74 68 29 0d 0a 09 | 09 72 65 74 75 72 6e 20 |idth)...|.return |
|00001cb0| 2d 31 3b 0d 0a 0d 0a 09 | 49 6e 70 75 74 20 3d 20 |-1;.....|Input = |
|00001cc0| 4c 2e 54 65 78 74 3b 0d | 0a 09 57 6f 72 64 73 54 |L.Text;.|..WordsT|
|00001cd0| 68 69 73 52 6f 77 20 3d | 20 30 3b 0d 0a 09 4c 69 |hisRow =| 0;...Li|
|00001ce0| 6e 65 57 69 64 74 68 20 | 3d 20 30 3b 0d 0a 09 57 |neWidth |= 0;...W|
|00001cf0| 72 61 70 50 6f 73 20 3d | 20 30 3b 0d 0a 09 4e 65 |rapPos =| 0;...Ne|
|00001d00| 78 74 57 6f 72 64 20 3d | 20 22 22 3b 0d 0a 09 43 |xtWord =| "";...C|
|00001d10| 75 72 72 65 6e 74 53 74 | 79 6c 65 20 3d 20 55 57 |urrentSt|yle = UW|
|00001d20| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00001d30| 28 4c 29 2e 53 74 61 72 | 74 53 74 79 6c 65 3b 0d |(L).Star|tStyle;.|
|00001d40| 0a 0d 0a 09 77 68 69 6c | 65 28 49 6e 70 75 74 20 |....whil|e(Input |
|00001d50| 21 3d 20 22 22 20 7c 7c | 20 4e 65 78 74 57 6f 72 |!= "" ||| NextWor|
|00001d60| 64 20 21 3d 20 22 22 29 | 0d 0a 09 7b 0d 0a 09 09 |d != "")|...{....|
|00001d70| 69 66 28 4e 65 78 74 57 | 6f 72 64 20 3d 3d 20 22 |if(NextW|ord == "|
|00001d80| 22 29 0d 0a 09 09 7b 0d | 0a 09 09 09 52 65 6d 6f |")....{.|....Remo|
|00001d90| 76 65 4e 65 78 74 57 6f | 72 64 28 49 6e 70 75 74 |veNextWo|rd(Input|
|00001da0| 2c 20 4e 65 78 74 57 6f | 72 64 29 3b 0d 0a 09 09 |, NextWo|rd);....|
|00001db0| 09 4e 65 78 74 57 6f 72 | 64 57 69 64 74 68 20 3d |.NextWor|dWidth =|
|00001dc0| 20 43 61 6c 63 48 54 4d | 4c 54 65 78 74 57 69 64 | CalcHTM|LTextWid|
|00001dd0| 74 68 28 43 2c 20 4e 65 | 78 74 57 6f 72 64 2c 20 |th(C, Ne|xtWord, |
|00001de0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 3b 0d 0a |CurrentS|tyle);..|
|00001df0| 09 09 7d 0d 0a 09 09 69 | 66 28 57 6f 72 64 73 54 |..}....i|f(WordsT|
|00001e00| 68 69 73 52 6f 77 20 3e | 20 30 20 26 26 20 4c 69 |hisRow >| 0 && Li|
|00001e10| 6e 65 57 69 64 74 68 20 | 2b 20 4e 65 78 74 57 6f |neWidth |+ NextWo|
|00001e20| 72 64 57 69 64 74 68 20 | 3e 20 4d 61 78 57 69 64 |rdWidth |> MaxWid|
|00001e30| 74 68 29 0d 0a 09 09 7b | 0d 0a 09 09 09 72 65 74 |th)....{|.....ret|
|00001e40| 75 72 6e 20 57 72 61 70 | 50 6f 73 3b 0d 0a 09 09 |urn Wrap|Pos;....|
|00001e50| 7d 0d 0a 09 09 65 6c 73 | 65 0d 0a 09 09 7b 0d 0a |}....els|e....{..|
|00001e60| 09 09 09 57 72 61 70 50 | 6f 73 20 2b 3d 20 4c 65 |...WrapP|os += Le|
|00001e70| 6e 28 4e 65 78 74 57 6f | 72 64 29 3b 0d 0a 09 09 |n(NextWo|rd);....|
|00001e80| 09 4c 69 6e 65 57 69 64 | 74 68 20 2b 3d 20 4e 65 |.LineWid|th += Ne|
|00001e90| 78 74 57 6f 72 64 57 69 | 64 74 68 3b 0d 0a 09 09 |xtWordWi|dth;....|
|00001ea0| 09 4e 65 78 74 57 6f 72 | 64 20 3d 20 22 22 3b 0d |.NextWor|d = "";.|
|00001eb0| 0a 09 09 09 57 6f 72 64 | 73 54 68 69 73 52 6f 77 |....Word|sThisRow|
|00001ec0| 2b 2b 3b 0d 0a 09 09 7d | 0d 0a 09 7d 0d 0a 09 72 |++;....}|...}...r|
|00001ed0| 65 74 75 72 6e 20 2d 31 | 3b 0d 0a 7d 0d 0a 0d 0a |eturn -1|;..}....|
|00001ee0| 2f 2f 20 46 69 6e 64 20 | 74 68 65 20 6e 65 78 74 |// Find |the next|
|00001ef0| 20 77 6f 72 64 20 2d 20 | 62 75 74 20 64 6f 6e 27 | word - |but don'|
|00001f00| 74 20 73 70 6c 69 74 20 | 75 70 20 48 54 4d 4c 20 |t split |up HTML |
|00001f10| 74 61 67 73 2e 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |tags...f|unction |
|00001f20| 52 65 6d 6f 76 65 4e 65 | 78 74 57 6f 72 64 28 6f |RemoveNe|xtWord(o|
|00001f30| 75 74 20 73 74 72 69 6e | 67 20 54 65 78 74 2c 20 |ut strin|g Text, |
|00001f40| 6f 75 74 20 73 74 72 69 | 6e 67 20 4e 65 78 74 57 |out stri|ng NextW|
|00001f50| 6f 72 64 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |ord)..{.|..local |
|00001f60| 69 6e 74 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 |int i;..|.local b|
|00001f70| 6f 6f 6c 20 62 49 6e 73 | 69 64 65 54 61 67 3b 0d |ool bIns|ideTag;.|
|00001f80| 0a 09 6c 6f 63 61 6c 20 | 73 74 72 69 6e 67 20 43 |..local |string C|
|00001f90| 68 3b 0d 0a 09 0d 0a 09 | 62 49 6e 73 69 64 65 54 |h;......|bInsideT|
|00001fa0| 61 67 20 3d 20 46 61 6c | 73 65 3b 0d 0a 0d 0a 09 |ag = Fal|se;.....|
|00001fb0| 66 6f 72 28 69 3d 30 3b | 69 3c 4c 65 6e 28 54 65 |for(i=0;|i<Len(Te|
|00001fc0| 78 74 29 3b 69 2b 2b 29 | 0d 0a 09 7b 0d 0a 09 09 |xt);i++)|...{....|
|00001fd0| 43 68 20 3d 20 4d 69 64 | 28 54 65 78 74 2c 20 69 |Ch = Mid|(Text, i|
|00001fe0| 2c 20 31 29 3b 0d 0a 09 | 09 69 66 28 43 68 20 3d |, 1);...|.if(Ch =|
|00001ff0| 3d 20 22 3e 22 29 0d 0a | 09 09 09 62 49 6e 73 69 |= ">")..|...bInsi|
|00002000| 64 65 54 61 67 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |deTag = |False;..|
|00002010| 09 09 69 66 28 43 68 20 | 3d 3d 20 22 3c 22 29 0d |..if(Ch |== "<").|
|00002020| 0a 09 09 09 62 49 6e 73 | 69 64 65 54 61 67 20 3d |....bIns|ideTag =|
|00002030| 20 54 72 75 65 3b 0d 0a | 09 09 69 66 28 43 68 20 | True;..|..if(Ch |
|00002040| 3d 3d 20 22 20 22 20 26 | 26 20 21 62 49 6e 73 69 |== " " &|& !bInsi|
|00002050| 64 65 54 61 67 29 0d 0a | 09 09 09 62 72 65 61 6b |deTag)..|...break|
|00002060| 3b 0d 0a 09 7d 0d 0a 09 | 77 68 69 6c 65 28 4d 69 |;...}...|while(Mi|
|00002070| 64 28 54 65 78 74 2c 20 | 69 2c 20 31 29 20 3d 3d |d(Text, |i, 1) ==|
|00002080| 20 22 20 22 29 0d 0a 09 | 09 69 2b 2b 3b 09 0d 0a | " ")...|.i++;...|
|00002090| 09 4e 65 78 74 57 6f 72 | 64 20 3d 20 4c 65 66 74 |.NextWor|d = Left|
|000020a0| 28 54 65 78 74 2c 20 69 | 29 3b 0d 0a 09 54 65 78 |(Text, i|);...Tex|
|000020b0| 74 20 3d 20 4d 69 64 28 | 54 65 78 74 2c 20 69 29 |t = Mid(|Text, i)|
|000020c0| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|000020d0| 20 55 57 69 6e 64 6f 77 | 44 79 6e 61 6d 69 63 54 | UWindow|DynamicT|
|000020e0| 65 78 74 52 6f 77 20 41 | 64 64 54 65 78 74 28 73 |extRow A|ddText(s|
|000020f0| 74 72 69 6e 67 20 4e 65 | 77 4c 69 6e 65 29 0d 0a |tring Ne|wLine)..|
|00002100| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 73 74 72 69 6e 67 |{...loca|l string|
|00002110| 20 49 6e 70 75 74 2c 20 | 4f 75 74 70 75 74 2c 20 | Input, |Output, |
|00002120| 4c 65 66 74 54 65 78 74 | 2c 20 52 69 67 68 74 54 |LeftText|, RightT|
|00002130| 65 78 74 2c 20 48 54 4d | 4c 2c 20 54 65 6d 70 3b |ext, HTM|L, Temp;|
|00002140| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 69 3b 0d |...local| int i;.|
|00002150| 0a 09 6c 6f 63 61 6c 20 | 55 57 69 6e 64 6f 77 44 |..local |UWindowD|
|00002160| 79 6e 61 6d 69 63 54 65 | 78 74 52 6f 77 20 4c 3b |ynamicTe|xtRow L;|
|00002170| 0d 0a 09 6c 6f 63 61 6c | 20 48 54 4d 4c 53 74 79 |...local| HTMLSty|
|00002180| 6c 65 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2c |le Curre|ntStyle,|
|00002190| 20 53 74 61 72 74 53 74 | 79 6c 65 3b 0d 0a 0d 0a | StartSt|yle;....|
|000021a0| 09 69 66 28 4c 69 73 74 | 2e 4c 61 73 74 20 3d 3d |.if(List|.Last ==|
|000021b0| 20 4c 69 73 74 29 0d 0a | 09 7b 0d 0a 09 09 43 75 | List)..|.{....Cu|
|000021c0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 75 6c 6c 65 |rrentSty|le.Bulle|
|000021d0| 74 4c 65 76 65 6c 20 3d | 20 30 3b 0d 0a 09 09 43 |tLevel =| 0;....C|
|000021e0| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 4c 69 6e 6b |urrentSt|yle.Link|
|000021f0| 44 65 73 74 69 6e 61 74 | 69 6f 6e 20 3d 20 22 22 |Destinat|ion = ""|
|00002200| 3b 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |;....Cur|rentStyl|
|00002210| 65 2e 54 65 78 74 43 6f | 6c 6f 72 20 3d 20 54 65 |e.TextCo|lor = Te|
|00002220| 78 74 43 6f 6c 6f 72 3b | 0d 0a 09 09 43 75 72 72 |xtColor;|....Curr|
|00002230| 65 6e 74 53 74 79 6c 65 | 2e 42 47 43 6f 6c 6f 72 |entStyle|.BGColor|
|00002240| 20 3d 20 42 47 43 6f 6c | 6f 72 3b 0d 0a 09 09 43 | = BGCol|or;....C|
|00002250| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 43 65 6e |urrentSt|yle.bCen|
|00002260| 74 65 72 20 3d 20 62 48 | 43 65 6e 74 65 72 3b 0d |ter = bH|Center;.|
|00002270| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00002280| 62 4c 69 6e 6b 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |bLink = |False;..|
|00002290| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|000022a0| 55 6e 64 65 72 6c 69 6e | 65 20 3d 20 46 61 6c 73 |Underlin|e = Fals|
|000022b0| 65 3b 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |e;....Cu|rrentSty|
|000022c0| 6c 65 2e 62 4e 6f 42 52 | 20 3d 20 46 61 6c 73 65 |le.bNoBR| = False|
|000022d0| 3b 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |;....Cur|rentStyl|
|000022e0| 65 2e 62 48 65 61 64 69 | 6e 67 20 3d 20 46 61 6c |e.bHeadi|ng = Fal|
|000022f0| 73 65 3b 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |se;....C|urrentSt|
|00002300| 79 6c 65 2e 62 42 6f 6c | 64 20 3d 20 46 61 6c 73 |yle.bBol|d = Fals|
|00002310| 65 3b 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |e;....Cu|rrentSty|
|00002320| 6c 65 2e 62 42 6c 69 6e | 6b 20 3d 20 46 61 6c 73 |le.bBlin|k = Fals|
|00002330| 65 3b 0d 0a 09 7d 0d 0a | 09 65 6c 73 65 0d 0a 09 |e;...}..|.else...|
|00002340| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 20 3d 20 |.Current|Style = |
|00002350| 55 57 69 6e 64 6f 77 48 | 54 4d 4c 54 65 78 74 52 |UWindowH|TMLTextR|
|00002360| 6f 77 28 4c 69 73 74 2e | 4c 61 73 74 29 2e 45 6e |ow(List.|Last).En|
|00002370| 64 53 74 79 6c 65 3b 0d | 0a 09 53 74 61 72 74 53 |dStyle;.|..StartS|
|00002380| 74 79 6c 65 20 3d 20 43 | 75 72 72 65 6e 74 53 74 |tyle = C|urrentSt|
|00002390| 79 6c 65 3b 0d 0a 0d 0a | 09 2f 2f 20 63 6f 6e 76 |yle;....|.// conv|
|000023a0| 65 72 74 20 5c 5c 6e 27 | 73 20 2d 3e 20 3c 62 72 |ert \\n'|s -> <br|
|000023b0| 3e 27 73 0d 0a 09 69 20 | 3d 20 49 6e 53 74 72 28 |>'s...i |= InStr(|
|000023c0| 4e 65 77 4c 69 6e 65 2c | 20 22 5c 5c 6e 22 29 3b |NewLine,| "\\n");|
|000023d0| 0d 0a 09 77 68 69 6c 65 | 28 69 20 21 3d 20 2d 31 |...while|(i != -1|
|000023e0| 29 0d 0a 09 7b 0d 0a 09 | 09 4e 65 77 4c 69 6e 65 |)...{...|.NewLine|
|000023f0| 20 3d 20 4c 65 66 74 28 | 4e 65 77 4c 69 6e 65 2c | = Left(|NewLine,|
|00002400| 20 69 29 20 24 20 22 3c | 62 72 3e 22 20 24 20 4d | i) $ "<|br>" $ M|
|00002410| 69 64 28 4e 65 77 4c 69 | 6e 65 2c 20 69 20 2b 20 |id(NewLi|ne, i + |
|00002420| 32 29 3b 0d 0a 09 09 69 | 20 3d 20 49 6e 53 74 72 |2);....i| = InStr|
|00002430| 28 4e 65 77 4c 69 6e 65 | 2c 20 22 5c 5c 6e 22 29 |(NewLine|, "\\n")|
|00002440| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 49 6e 70 75 74 20 |;...}...|..Input |
|00002450| 3d 20 4e 65 77 4c 69 6e | 65 3b 0d 0a 09 4f 75 74 |= NewLin|e;...Out|
|00002460| 70 75 74 20 3d 20 22 22 | 3b 0d 0a 09 77 68 69 6c |put = ""|;...whil|
|00002470| 65 28 49 6e 70 75 74 20 | 21 3d 20 22 22 29 0d 0a |e(Input |!= "")..|
|00002480| 09 7b 0d 0a 09 09 50 61 | 72 73 65 48 54 4d 4c 28 |.{....Pa|rseHTML(|
|00002490| 49 6e 70 75 74 2c 20 4c | 65 66 74 54 65 78 74 2c |Input, L|eftText,|
|000024a0| 20 48 54 4d 4c 2c 20 52 | 69 67 68 74 54 65 78 74 | HTML, R|ightText|
|000024b0| 29 3b 0d 0a 09 09 0d 0a | 09 09 73 77 69 74 63 68 |);......|..switch|
|000024c0| 28 47 65 74 54 61 67 28 | 48 54 4d 4c 29 29 0d 0a |(GetTag(|HTML))..|
|000024d0| 09 09 7b 0d 0a 09 09 2f | 2f 20 6d 75 6c 74 69 6c |..{..../|/ multil|
|000024e0| 69 6e 65 20 48 54 4d 4c | 20 74 61 67 73 0d 0a 09 |ine HTML| tags...|
|000024f0| 09 63 61 73 65 20 22 50 | 22 3a 0d 0a 09 09 09 69 |.case "P|":.....i|
|00002500| 66 28 28 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 |f((Outpu|t $ Left|
|00002510| 54 65 78 74 29 20 21 3d | 20 22 22 29 0d 0a 09 09 |Text) !=| "")....|
|00002520| 09 7b 0d 0a 09 09 09 09 | 4c 20 3d 20 53 75 70 65 |.{......|L = Supe|
|00002530| 72 2e 41 64 64 54 65 78 | 74 28 4f 75 74 70 75 74 |r.AddTex|t(Output|
|00002540| 20 24 20 4c 65 66 74 54 | 65 78 74 29 3b 0d 0a 09 | $ LeftT|ext);...|
|00002550| 09 09 09 4f 75 74 70 75 | 74 20 3d 20 22 22 3b 0d |...Outpu|t = "";.|
|00002560| 0a 09 09 09 09 55 57 69 | 6e 64 6f 77 48 54 4d 4c |.....UWi|ndowHTML|
|00002570| 54 65 78 74 52 6f 77 28 | 4c 29 2e 53 74 61 72 74 |TextRow(|L).Start|
|00002580| 53 74 79 6c 65 20 3d 20 | 53 74 61 72 74 53 74 79 |Style = |StartSty|
|00002590| 6c 65 3b 0d 0a 09 09 09 | 09 55 57 69 6e 64 6f 77 |le;.....|.UWindow|
|000025a0| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 45 |HTMLText|Row(L).E|
|000025b0| 6e 64 53 74 79 6c 65 20 | 3d 20 43 75 72 72 65 6e |ndStyle |= Curren|
|000025c0| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 7d 0d 0a 09 |tStyle;.|....}...|
|000025d0| 09 09 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 43 |..StartS|tyle = C|
|000025e0| 75 72 72 65 6e 74 53 74 | 79 6c 65 3b 0d 0a 09 09 |urrentSt|yle;....|
|000025f0| 09 4c 20 3d 20 53 75 70 | 65 72 2e 41 64 64 54 65 |.L = Sup|er.AddTe|
|00002600| 78 74 28 22 22 29 3b 0d | 0a 09 09 09 55 57 69 6e |xt("");.|....UWin|
|00002610| 64 6f 77 48 54 4d 4c 54 | 65 78 74 52 6f 77 28 4c |dowHTMLT|extRow(L|
|00002620| 29 2e 53 74 61 72 74 53 | 74 79 6c 65 20 3d 20 53 |).StartS|tyle = S|
|00002630| 74 61 72 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 55 |tartStyl|e;.....U|
|00002640| 57 69 6e 64 6f 77 48 54 | 4d 4c 54 65 78 74 52 6f |WindowHT|MLTextRo|
|00002650| 77 28 4c 29 2e 45 6e 64 | 53 74 79 6c 65 20 3d 20 |w(L).End|Style = |
|00002660| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00002670| 09 09 62 72 65 61 6b 3b | 0d 0a 09 09 63 61 73 65 |..break;|....case|
|00002680| 20 22 42 52 22 3a 0d 0a | 09 09 09 4c 20 3d 20 53 | "BR":..|...L = S|
|00002690| 75 70 65 72 2e 41 64 64 | 54 65 78 74 28 4f 75 74 |uper.Add|Text(Out|
|000026a0| 70 75 74 20 24 20 4c 65 | 66 74 54 65 78 74 29 3b |put $ Le|ftText);|
|000026b0| 0d 0a 09 09 09 4f 75 74 | 70 75 74 20 3d 20 22 22 |.....Out|put = ""|
|000026c0| 3b 0d 0a 09 09 09 55 57 | 69 6e 64 6f 77 48 54 4d |;.....UW|indowHTM|
|000026d0| 4c 54 65 78 74 52 6f 77 | 28 4c 29 2e 53 74 61 72 |LTextRow|(L).Star|
|000026e0| 74 53 74 79 6c 65 20 3d | 20 53 74 61 72 74 53 74 |tStyle =| StartSt|
|000026f0| 79 6c 65 3b 0d 0a 09 09 | 09 55 57 69 6e 64 6f 77 |yle;....|.UWindow|
|00002700| 48 54 4d 4c 54 65 78 74 | 52 6f 77 28 4c 29 2e 45 |HTMLText|Row(L).E|
|00002710| 6e 64 53 74 79 6c 65 20 | 3d 20 43 75 72 72 65 6e |ndStyle |= Curren|
|00002720| 74 53 74 79 6c 65 3b 0d | 0a 09 09 09 53 74 61 72 |tStyle;.|....Star|
|00002730| 74 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |tStyle =| Current|
|00002740| 53 74 79 6c 65 3b 0d 0a | 09 09 09 62 72 65 61 6b |Style;..|...break|
|00002750| 3b 0d 0a 09 09 63 61 73 | 65 20 22 42 4f 44 59 22 |;....cas|e "BODY"|
|00002760| 3a 0d 0a 09 09 09 54 65 | 6d 70 20 3d 20 47 65 74 |:.....Te|mp = Get|
|00002770| 4f 70 74 69 6f 6e 28 48 | 54 4d 4c 2c 20 22 42 47 |Option(H|TML, "BG|
|00002780| 43 4f 4c 4f 52 3d 22 29 | 3b 0d 0a 09 09 09 69 66 |COLOR=")|;.....if|
|00002790| 28 54 65 6d 70 20 21 3d | 20 22 22 29 0d 0a 09 09 |(Temp !=| "")....|
|000027a0| 09 09 42 47 43 6f 6c 6f | 72 20 3d 20 50 61 72 73 |..BGColo|r = Pars|
|000027b0| 65 43 6f 6c 6f 72 28 54 | 65 6d 70 29 3b 0d 0a 0d |eColor(T|emp);...|
|000027c0| 0a 09 09 09 54 65 6d 70 | 20 3d 20 47 65 74 4f 70 |....Temp| = GetOp|
|000027d0| 74 69 6f 6e 28 48 54 4d | 4c 2c 20 22 4c 49 4e 4b |tion(HTM|L, "LINK|
|000027e0| 3d 22 29 3b 0d 0a 09 09 | 09 69 66 28 54 65 6d 70 |=");....|.if(Temp|
|000027f0| 20 21 3d 20 22 22 29 0d | 0a 09 09 09 09 4c 69 6e | != "").|.....Lin|
|00002800| 6b 43 6f 6c 6f 72 20 3d | 20 50 61 72 73 65 43 6f |kColor =| ParseCo|
|00002810| 6c 6f 72 28 54 65 6d 70 | 29 3b 0d 0a 0d 0a 09 09 |lor(Temp|);......|
|00002820| 09 54 65 6d 70 20 3d 20 | 47 65 74 4f 70 74 69 6f |.Temp = |GetOptio|
|00002830| 6e 28 48 54 4d 4c 2c 20 | 22 41 4c 49 4e 4b 3d 22 |n(HTML, |"ALINK="|
|00002840| 29 3b 0d 0a 09 09 09 69 | 66 28 54 65 6d 70 20 21 |);.....i|f(Temp !|
|00002850| 3d 20 22 22 29 0d 0a 09 | 09 09 09 41 4c 69 6e 6b |= "")...|...ALink|
|00002860| 43 6f 6c 6f 72 20 3d 20 | 50 61 72 73 65 43 6f 6c |Color = |ParseCol|
|00002870| 6f 72 28 54 65 6d 70 29 | 3b 0d 0a 0d 0a 09 09 09 |or(Temp)|;.......|
|00002880| 54 65 6d 70 20 3d 20 47 | 65 74 4f 70 74 69 6f 6e |Temp = G|etOption|
|00002890| 28 48 54 4d 4c 2c 20 22 | 54 45 58 54 3d 22 29 3b |(HTML, "|TEXT=");|
|000028a0| 0d 0a 09 09 09 69 66 28 | 54 65 6d 70 20 21 3d 20 |.....if(|Temp != |
|000028b0| 22 22 29 0d 0a 09 09 09 | 09 54 65 78 74 43 6f 6c |"").....|.TextCol|
|000028c0| 6f 72 20 3d 20 50 61 72 | 73 65 43 6f 6c 6f 72 28 |or = Par|seColor(|
|000028d0| 54 65 6d 70 29 3b 0d 0a | 09 09 09 4f 75 74 70 75 |Temp);..|...Outpu|
|000028e0| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 4c 65 66 |t = Outp|ut $ Lef|
|000028f0| 74 54 65 78 74 3b 0d 0a | 09 09 09 62 72 65 61 6b |tText;..|...break|
|00002900| 3b 0d 0a 09 09 63 61 73 | 65 20 22 43 45 4e 54 45 |;....cas|e "CENTE|
|00002910| 52 22 3a 0d 0a 09 09 09 | 69 66 28 28 4f 75 74 70 |R":.....|if((Outp|
|00002920| 75 74 20 24 20 4c 65 66 | 74 54 65 78 74 29 20 21 |ut $ Lef|tText) !|
|00002930| 3d 20 22 22 29 0d 0a 09 | 09 09 7b 0d 0a 09 09 09 |= "")...|..{.....|
|00002940| 09 4c 20 3d 20 53 75 70 | 65 72 2e 41 64 64 54 65 |.L = Sup|er.AddTe|
|00002950| 78 74 28 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 |xt(Outpu|t $ Left|
|00002960| 54 65 78 74 29 3b 0d 0a | 09 09 09 09 4f 75 74 70 |Text);..|....Outp|
|00002970| 75 74 20 3d 20 22 22 3b | 0d 0a 09 09 09 09 55 57 |ut = "";|......UW|
|00002980| 69 6e 64 6f 77 48 54 4d | 4c 54 65 78 74 52 6f 77 |indowHTM|LTextRow|
|00002990| 28 4c 29 2e 53 74 61 72 | 74 53 74 79 6c 65 20 3d |(L).Star|tStyle =|
|000029a0| 20 53 74 61 72 74 53 74 | 79 6c 65 3b 0d 0a 09 09 | StartSt|yle;....|
|000029b0| 09 09 55 57 69 6e 64 6f | 77 48 54 4d 4c 54 65 78 |..UWindo|wHTMLTex|
|000029c0| 74 52 6f 77 28 4c 29 2e | 45 6e 64 53 74 79 6c 65 |tRow(L).|EndStyle|
|000029d0| 20 3d 20 43 75 72 72 65 | 6e 74 53 74 79 6c 65 3b | = Curre|ntStyle;|
|000029e0| 0d 0a 09 09 09 7d 0d 0a | 09 09 09 43 75 72 72 65 |.....}..|...Curre|
|000029f0| 6e 74 53 74 79 6c 65 2e | 62 43 65 6e 74 65 72 20 |ntStyle.|bCenter |
|00002a00| 3d 20 54 72 75 65 3b 0d | 0a 09 09 09 53 74 61 72 |= True;.|....Star|
|00002a10| 74 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |tStyle =| Current|
|00002a20| 53 74 79 6c 65 3b 0d 0a | 09 09 09 62 72 65 61 6b |Style;..|...break|
|00002a30| 3b 0d 0a 09 09 63 61 73 | 65 20 22 2f 43 45 4e 54 |;....cas|e "/CENT|
|00002a40| 45 52 22 3a 0d 0a 09 09 | 09 4c 20 3d 20 53 75 70 |ER":....|.L = Sup|
|00002a50| 65 72 2e 41 64 64 54 65 | 78 74 28 4f 75 74 70 75 |er.AddTe|xt(Outpu|
|00002a60| 74 20 24 20 4c 65 66 74 | 54 65 78 74 29 3b 0d 0a |t $ Left|Text);..|
|00002a70| 09 09 09 4f 75 74 70 75 | 74 20 3d 20 22 22 3b 0d |...Outpu|t = "";.|
|00002a80| 0a 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002a90| 65 78 74 52 6f 77 28 4c | 29 2e 53 74 61 72 74 53 |extRow(L|).StartS|
|00002aa0| 74 79 6c 65 20 3d 20 53 | 74 61 72 74 53 74 79 6c |tyle = S|tartStyl|
|00002ab0| 65 3b 0d 0a 09 09 09 55 | 57 69 6e 64 6f 77 48 54 |e;.....U|WindowHT|
|00002ac0| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 45 6e 64 |MLTextRo|w(L).End|
|00002ad0| 53 74 79 6c 65 20 3d 20 | 43 75 72 72 65 6e 74 53 |Style = |CurrentS|
|00002ae0| 74 79 6c 65 3b 0d 0a 09 | 09 09 43 75 72 72 65 6e |tyle;...|..Curren|
|00002af0| 74 53 74 79 6c 65 2e 62 | 43 65 6e 74 65 72 20 3d |tStyle.b|Center =|
|00002b00| 20 46 61 6c 73 65 3b 0d | 0a 09 09 09 53 74 61 72 | False;.|....Star|
|00002b10| 74 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |tStyle =| Current|
|00002b20| 53 74 79 6c 65 3b 0d 0a | 09 09 09 62 72 65 61 6b |Style;..|...break|
|00002b30| 3b 09 09 09 0d 0a 09 09 | 2f 2f 20 49 6e 6c 69 6e |;.......|// Inlin|
|00002b40| 65 20 48 54 4d 4c 20 74 | 61 67 73 0d 0a 09 09 63 |e HTML t|ags....c|
|00002b50| 61 73 65 20 22 48 31 22 | 3a 0d 0a 09 09 09 69 66 |ase "H1"|:.....if|
|00002b60| 28 28 4f 75 74 70 75 74 | 20 24 20 4c 65 66 74 54 |((Output| $ LeftT|
|00002b70| 65 78 74 29 20 21 3d 20 | 22 22 29 0d 0a 09 09 09 |ext) != |"").....|
|00002b80| 7b 0d 0a 09 09 09 09 4c | 20 3d 20 53 75 70 65 72 |{......L| = Super|
|00002b90| 2e 41 64 64 54 65 78 74 | 28 4f 75 74 70 75 74 20 |.AddText|(Output |
|00002ba0| 24 20 4c 65 66 74 54 65 | 78 74 29 3b 0d 0a 09 09 |$ LeftTe|xt);....|
|00002bb0| 09 09 4f 75 74 70 75 74 | 20 3d 20 22 22 3b 0d 0a |..Output| = "";..|
|00002bc0| 09 09 09 09 55 57 69 6e | 64 6f 77 48 54 4d 4c 54 |....UWin|dowHTMLT|
|00002bd0| 65 78 74 52 6f 77 28 4c | 29 2e 53 74 61 72 74 53 |extRow(L|).StartS|
|00002be0| 74 79 6c 65 20 3d 20 53 | 74 61 72 74 53 74 79 6c |tyle = S|tartStyl|
|00002bf0| 65 3b 0d 0a 09 09 09 09 | 55 57 69 6e 64 6f 77 48 |e;......|UWindowH|
|00002c00| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 45 6e |TMLTextR|ow(L).En|
|00002c10| 64 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |dStyle =| Current|
|00002c20| 53 74 79 6c 65 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |Style;..|...}....|
|00002c30| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 48 |.Current|Style.bH|
|00002c40| 65 61 64 69 6e 67 20 3d | 20 54 72 75 65 3b 0d 0a |eading =| True;..|
|00002c50| 09 09 09 53 74 61 72 74 | 53 74 79 6c 65 20 3d 20 |...Start|Style = |
|00002c60| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 3b 0d 0a 09 |CurrentS|tyle;...|
|00002c70| 09 09 62 72 65 61 6b 3b | 0d 0a 09 09 63 61 73 65 |..break;|....case|
|00002c80| 20 22 2f 48 31 22 3a 0d | 0a 09 09 09 4c 20 3d 20 | "/H1":.|....L = |
|00002c90| 53 75 70 65 72 2e 41 64 | 64 54 65 78 74 28 4f 75 |Super.Ad|dText(Ou|
|00002ca0| 74 70 75 74 20 24 20 4c | 65 66 74 54 65 78 74 29 |tput $ L|eftText)|
|00002cb0| 3b 0d 0a 09 09 09 4f 75 | 74 70 75 74 20 3d 20 22 |;.....Ou|tput = "|
|00002cc0| 22 3b 0d 0a 09 09 09 55 | 57 69 6e 64 6f 77 48 54 |";.....U|WindowHT|
|00002cd0| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 53 74 61 |MLTextRo|w(L).Sta|
|00002ce0| 72 74 53 74 79 6c 65 20 | 3d 20 53 74 61 72 74 53 |rtStyle |= StartS|
|00002cf0| 74 79 6c 65 3b 0d 0a 09 | 09 09 55 57 69 6e 64 6f |tyle;...|..UWindo|
|00002d00| 77 48 54 4d 4c 54 65 78 | 74 52 6f 77 28 4c 29 2e |wHTMLTex|tRow(L).|
|00002d10| 45 6e 64 53 74 79 6c 65 | 20 3d 20 43 75 72 72 65 |EndStyle| = Curre|
|00002d20| 6e 74 53 74 79 6c 65 3b | 0d 0a 09 09 09 43 75 72 |ntStyle;|.....Cur|
|00002d30| 72 65 6e 74 53 74 79 6c | 65 2e 62 48 65 61 64 69 |rentStyl|e.bHeadi|
|00002d40| 6e 67 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 09 |ng = Fal|se;.....|
|00002d50| 53 74 61 72 74 53 74 79 | 6c 65 20 3d 20 43 75 72 |StartSty|le = Cur|
|00002d60| 72 65 6e 74 53 74 79 6c | 65 3b 0d 0a 09 09 09 62 |rentStyl|e;.....b|
|00002d70| 72 65 61 6b 3b 09 09 09 | 0d 0a 09 09 63 61 73 65 |reak;...|....case|
|00002d80| 20 22 46 4f 4e 54 22 3a | 0d 0a 09 09 09 4f 75 74 | "FONT":|.....Out|
|00002d90| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|00002da0| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|00002db0| 0a 09 09 09 54 65 6d 70 | 20 3d 20 47 65 74 4f 70 |....Temp| = GetOp|
|00002dc0| 74 69 6f 6e 28 48 54 4d | 4c 2c 20 22 43 4f 4c 4f |tion(HTM|L, "COLO|
|00002dd0| 52 3d 22 29 3b 0d 0a 09 | 09 09 69 66 28 54 65 6d |R=");...|..if(Tem|
|00002de0| 70 20 21 3d 20 22 22 29 | 0d 0a 09 09 09 09 43 75 |p != "")|......Cu|
|00002df0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 54 65 78 74 43 |rrentSty|le.TextC|
|00002e00| 6f 6c 6f 72 20 3d 20 50 | 61 72 73 65 43 6f 6c 6f |olor = P|arseColo|
|00002e10| 72 28 54 65 6d 70 29 3b | 0d 0a 09 09 09 54 65 6d |r(Temp);|.....Tem|
|00002e20| 70 20 3d 20 47 65 74 4f | 70 74 69 6f 6e 28 48 54 |p = GetO|ption(HT|
|00002e30| 4d 4c 2c 20 22 42 47 43 | 4f 4c 4f 52 3d 22 29 3b |ML, "BGC|OLOR=");|
|00002e40| 0d 0a 09 09 09 69 66 28 | 54 65 6d 70 20 21 3d 20 |.....if(|Temp != |
|00002e50| 22 22 29 0d 0a 09 09 09 | 09 43 75 72 72 65 6e 74 |"").....|.Current|
|00002e60| 53 74 79 6c 65 2e 42 47 | 43 6f 6c 6f 72 20 3d 20 |Style.BG|Color = |
|00002e70| 50 61 72 73 65 43 6f 6c | 6f 72 28 54 65 6d 70 29 |ParseCol|or(Temp)|
|00002e80| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|00002e90| 63 61 73 65 20 22 2f 46 | 4f 4e 54 22 3a 0d 0a 09 |case "/F|ONT":...|
|00002ea0| 09 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|00002eb0| 74 20 24 20 4c 65 66 74 | 54 65 78 74 20 24 20 48 |t $ Left|Text $ H|
|00002ec0| 54 4d 4c 3b 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 |TML;....|.Current|
|00002ed0| 53 74 79 6c 65 2e 54 65 | 78 74 43 6f 6c 6f 72 20 |Style.Te|xtColor |
|00002ee0| 3d 20 54 65 78 74 43 6f | 6c 6f 72 3b 0d 0a 09 09 |= TextCo|lor;....|
|00002ef0| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 42 47 |.Current|Style.BG|
|00002f00| 43 6f 6c 6f 72 20 3d 20 | 42 47 43 6f 6c 6f 72 3b |Color = |BGColor;|
|00002f10| 0d 0a 09 09 09 62 72 65 | 61 6b 3b 0d 0a 09 09 63 |.....bre|ak;....c|
|00002f20| 61 73 65 20 22 42 22 3a | 0d 0a 09 09 09 4f 75 74 |ase "B":|.....Out|
|00002f30| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|00002f40| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|00002f50| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00002f60| 2e 62 42 6f 6c 64 20 3d | 20 54 72 75 65 3b 0d 0a |.bBold =| True;..|
|00002f70| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|00002f80| 65 20 22 2f 42 22 3a 0d | 0a 09 09 09 4f 75 74 70 |e "/B":.|....Outp|
|00002f90| 75 74 20 3d 20 4f 75 74 | 70 75 74 20 24 20 4c 65 |ut = Out|put $ Le|
|00002fa0| 66 74 54 65 78 74 20 24 | 20 48 54 4d 4c 3b 0d 0a |ftText $| HTML;..|
|00002fb0| 09 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00002fc0| 62 42 6f 6c 64 20 3d 20 | 46 61 6c 73 65 3b 0d 0a |bBold = |False;..|
|00002fd0| 09 09 09 62 72 65 61 6b | 3b 0d 0a 09 09 63 61 73 |...break|;....cas|
|00002fe0| 65 20 22 55 22 3a 0d 0a | 09 09 09 4f 75 74 70 75 |e "U":..|...Outpu|
|00002ff0| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 4c 65 66 |t = Outp|ut $ Lef|
|00003000| 74 54 65 78 74 20 24 20 | 48 54 4d 4c 3b 0d 0a 09 |tText $ |HTML;...|
|00003010| 09 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00003020| 55 6e 64 65 72 6c 69 6e | 65 20 3d 20 54 72 75 65 |Underlin|e = True|
|00003030| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|00003040| 63 61 73 65 20 22 2f 55 | 22 3a 0d 0a 09 09 09 4f |case "/U|":.....O|
|00003050| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00003060| 20 4c 65 66 74 54 65 78 | 74 20 24 20 48 54 4d 4c | LeftTex|t $ HTML|
|00003070| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00003080| 6c 65 2e 62 55 6e 64 65 | 72 6c 69 6e 65 20 3d 20 |le.bUnde|rline = |
|00003090| 46 61 6c 73 65 3b 0d 0a | 09 09 09 62 72 65 61 6b |False;..|...break|
|000030a0| 3b 0d 0a 09 09 63 61 73 | 65 20 22 41 22 3a 0d 0a |;....cas|e "A":..|
|000030b0| 09 09 09 4f 75 74 70 75 | 74 20 3d 20 4f 75 74 70 |...Outpu|t = Outp|
|000030c0| 75 74 20 24 20 4c 65 66 | 74 54 65 78 74 20 24 20 |ut $ Lef|tText $ |
|000030d0| 48 54 4d 4c 3b 0d 0a 09 | 09 09 43 75 72 72 65 6e |HTML;...|..Curren|
|000030e0| 74 53 74 79 6c 65 2e 62 | 4c 69 6e 6b 20 3d 20 54 |tStyle.b|Link = T|
|000030f0| 72 75 65 3b 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 |rue;....|.Current|
|00003100| 53 74 79 6c 65 2e 4c 69 | 6e 6b 44 65 73 74 69 6e |Style.Li|nkDestin|
|00003110| 61 74 69 6f 6e 20 3d 20 | 47 65 74 4f 70 74 69 6f |ation = |GetOptio|
|00003120| 6e 28 48 54 4d 4c 2c 20 | 22 48 52 45 46 3d 22 29 |n(HTML, |"HREF=")|
|00003130| 3b 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |;.....br|eak;....|
|00003140| 63 61 73 65 20 22 2f 41 | 22 3a 0d 0a 09 09 09 4f |case "/A|":.....O|
|00003150| 75 74 70 75 74 20 3d 20 | 4f 75 74 70 75 74 20 24 |utput = |Output $|
|00003160| 20 4c 65 66 74 54 65 78 | 74 20 24 20 48 54 4d 4c | LeftTex|t $ HTML|
|00003170| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|00003180| 6c 65 2e 62 4c 69 6e 6b | 20 3d 20 46 61 6c 73 65 |le.bLink| = False|
|00003190| 3b 0d 0a 09 09 09 43 75 | 72 72 65 6e 74 53 74 79 |;.....Cu|rrentSty|
|000031a0| 6c 65 2e 4c 69 6e 6b 44 | 65 73 74 69 6e 61 74 69 |le.LinkD|estinati|
|000031b0| 6f 6e 20 3d 20 22 22 3b | 0d 0a 09 09 09 62 72 65 |on = "";|.....bre|
|000031c0| 61 6b 3b 0d 0a 09 09 63 | 61 73 65 20 22 4e 4f 42 |ak;....c|ase "NOB|
|000031d0| 52 22 3a 0d 0a 09 09 09 | 4f 75 74 70 75 74 20 3d |R":.....|Output =|
|000031e0| 20 4f 75 74 70 75 74 20 | 24 20 4c 65 66 74 54 65 | Output |$ LeftTe|
|000031f0| 78 74 20 24 20 48 54 4d | 4c 3b 0d 0a 09 09 09 43 |xt $ HTM|L;.....C|
|00003200| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 4e 6f 42 |urrentSt|yle.bNoB|
|00003210| 52 20 3d 20 54 72 75 65 | 3b 0d 0a 09 09 09 62 72 |R = True|;.....br|
|00003220| 65 61 6b 3b 0d 0a 09 09 | 63 61 73 65 20 22 2f 4e |eak;....|case "/N|
|00003230| 4f 42 52 22 3a 0d 0a 09 | 09 09 4f 75 74 70 75 74 |OBR":...|..Output|
|00003240| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 4c 65 66 74 | = Outpu|t $ Left|
|00003250| 54 65 78 74 20 24 20 48 | 54 4d 4c 3b 0d 0a 09 09 |Text $ H|TML;....|
|00003260| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 4e |.Current|Style.bN|
|00003270| 6f 42 52 20 3d 20 46 61 | 6c 73 65 3b 0d 0a 09 09 |oBR = Fa|lse;....|
|00003280| 09 62 72 65 61 6b 3b 0d | 0a 09 09 63 61 73 65 20 |.break;.|...case |
|00003290| 22 42 4c 49 4e 4b 22 3a | 0d 0a 09 09 09 4f 75 74 |"BLINK":|.....Out|
|000032a0| 70 75 74 20 3d 20 4f 75 | 74 70 75 74 20 24 20 4c |put = Ou|tput $ L|
|000032b0| 65 66 74 54 65 78 74 20 | 24 20 48 54 4d 4c 3b 0d |eftText |$ HTML;.|
|000032c0| 0a 09 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|000032d0| 2e 62 42 6c 69 6e 6b 20 | 3d 20 54 72 75 65 3b 0d |.bBlink |= True;.|
|000032e0| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 63 61 |....brea|k;....ca|
|000032f0| 73 65 20 22 2f 42 4c 49 | 4e 4b 22 3a 0d 0a 09 09 |se "/BLI|NK":....|
|00003300| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00003310| 20 24 20 4c 65 66 74 54 | 65 78 74 20 24 20 48 54 | $ LeftT|ext $ HT|
|00003320| 4d 4c 3b 0d 0a 09 09 09 | 43 75 72 72 65 6e 74 53 |ML;.....|CurrentS|
|00003330| 74 79 6c 65 2e 62 42 6c | 69 6e 6b 20 3d 20 46 61 |tyle.bBl|ink = Fa|
|00003340| 6c 73 65 3b 0d 0a 09 09 | 09 62 72 65 61 6b 3b 0d |lse;....|.break;.|
|00003350| 0a 09 09 64 65 66 61 75 | 6c 74 3a 0d 0a 09 09 09 |...defau|lt:.....|
|00003360| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00003370| 24 20 4c 65 66 74 54 65 | 78 74 3b 0d 0a 09 09 09 |$ LeftTe|xt;.....|
|00003380| 62 72 65 61 6b 3b 0d 0a | 09 09 7d 0d 0a 09 09 49 |break;..|..}....I|
|00003390| 6e 70 75 74 20 3d 20 52 | 69 67 68 74 54 65 78 74 |nput = R|ightText|
|000033a0| 3b 0d 0a 09 7d 0d 0a 0d | 0a 09 4c 20 3d 20 53 75 |;...}...|..L = Su|
|000033b0| 70 65 72 2e 41 64 64 54 | 65 78 74 28 4f 75 74 70 |per.AddT|ext(Outp|
|000033c0| 75 74 29 3b 0d 0a 09 55 | 57 69 6e 64 6f 77 48 54 |ut);...U|WindowHT|
|000033d0| 4d 4c 54 65 78 74 52 6f | 77 28 4c 29 2e 53 74 61 |MLTextRo|w(L).Sta|
|000033e0| 72 74 53 74 79 6c 65 20 | 3d 20 53 74 61 72 74 53 |rtStyle |= StartS|
|000033f0| 74 79 6c 65 3b 0d 0a 09 | 55 57 69 6e 64 6f 77 48 |tyle;...|UWindowH|
|00003400| 54 4d 4c 54 65 78 74 52 | 6f 77 28 4c 29 2e 45 6e |TMLTextR|ow(L).En|
|00003410| 64 53 74 79 6c 65 20 3d | 20 43 75 72 72 65 6e 74 |dStyle =| Current|
|00003420| 53 74 79 6c 65 3b 0d 0a | 0d 0a 09 72 65 74 75 72 |Style;..|...retur|
|00003430| 6e 20 4c 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 2f 2f 2f |n L;..}.|.../////|
|00003440| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003450| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00003460| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 0d 0a |////////|//////..|
|00003470| 2f 2f 20 48 54 4d 4c 20 | 54 65 78 74 20 50 72 6f |// HTML |Text Pro|
|00003480| 63 65 73 73 69 6e 67 0d | 0a 2f 2f 2f 2f 2f 2f 2f |cessing.|.///////|
|00003490| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034a0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000034b0| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 0d 0a 0d 0a |////////|////....|
|000034c0| 2f 2f 20 47 65 74 20 74 | 68 65 20 6e 65 78 74 20 |// Get t|he next |
|000034d0| 48 54 4d 4c 20 74 61 67 | 2c 20 74 68 65 20 74 65 |HTML tag|, the te|
|000034e0| 78 74 20 62 65 66 6f 72 | 65 20 69 74 20 61 6e 64 |xt befor|e it and|
|000034f0| 20 65 76 65 72 74 68 69 | 6e 67 20 61 66 74 65 72 | everthi|ng after|
|00003500| 20 69 74 2e 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 50 | it...fu|nction P|
|00003510| 61 72 73 65 48 54 4d 4c | 28 73 74 72 69 6e 67 20 |arseHTML|(string |
|00003520| 49 6e 70 75 74 2c 20 6f | 75 74 20 73 74 72 69 6e |Input, o|ut strin|
|00003530| 67 20 4c 65 66 74 54 65 | 78 74 2c 20 6f 75 74 20 |g LeftTe|xt, out |
|00003540| 73 74 72 69 6e 67 20 48 | 54 4d 4c 2c 20 6f 75 74 |string H|TML, out|
|00003550| 20 73 74 72 69 6e 67 20 | 52 69 67 68 74 54 65 78 | string |RightTex|
|00003560| 74 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |t)..{...|local in|
|00003570| 74 20 69 3b 0d 0a 09 0d | 0a 09 69 20 3d 20 49 6e |t i;....|..i = In|
|00003580| 53 74 72 28 49 6e 70 75 | 74 2c 20 22 3c 22 29 3b |Str(Inpu|t, "<");|
|00003590| 0d 0a 09 69 66 28 69 20 | 3d 3d 20 2d 31 29 0d 0a |...if(i |== -1)..|
|000035a0| 09 7b 0d 0a 09 09 4c 65 | 66 74 54 65 78 74 20 3d |.{....Le|ftText =|
|000035b0| 20 49 6e 70 75 74 3b 0d | 0a 09 09 48 54 4d 4c 20 | Input;.|...HTML |
|000035c0| 3d 20 22 22 3b 0d 0a 09 | 09 52 69 67 68 74 54 65 |= "";...|.RightTe|
|000035d0| 78 74 20 3d 20 22 22 3b | 0d 0a 09 09 72 65 74 75 |xt = "";|....retu|
|000035e0| 72 6e 3b 0d 0a 09 7d 0d | 0a 0d 0a 09 4c 65 66 74 |rn;...}.|....Left|
|000035f0| 54 65 78 74 20 3d 20 4c | 65 66 74 28 49 6e 70 75 |Text = L|eft(Inpu|
|00003600| 74 2c 20 69 29 3b 0d 0a | 09 48 54 4d 4c 20 3d 20 |t, i);..|.HTML = |
|00003610| 4d 69 64 28 49 6e 70 75 | 74 2c 20 69 29 3b 0d 0a |Mid(Inpu|t, i);..|
|00003620| 0d 0a 09 69 20 3d 20 49 | 6e 53 74 72 28 48 54 4d |...i = I|nStr(HTM|
|00003630| 4c 2c 20 22 3e 22 29 3b | 0d 0a 09 69 66 28 69 20 |L, ">");|...if(i |
|00003640| 3d 3d 20 2d 31 29 0d 0a | 09 7b 0d 0a 09 09 52 69 |== -1)..|.{....Ri|
|00003650| 67 68 74 54 65 78 74 20 | 3d 20 22 22 3b 0d 0a 09 |ghtText |= "";...|
|00003660| 09 72 65 74 75 72 6e 3b | 0d 0a 09 7d 0d 0a 0d 0a |.return;|...}....|
|00003670| 09 52 69 67 68 74 54 65 | 78 74 20 3d 20 4d 69 64 |.RightTe|xt = Mid|
|00003680| 28 48 54 4d 4c 2c 20 69 | 2b 31 29 3b 0d 0a 09 48 |(HTML, i|+1);...H|
|00003690| 54 4d 4c 20 3d 20 4c 65 | 66 74 28 48 54 4d 4c 2c |TML = Le|ft(HTML,|
|000036a0| 20 69 2b 31 29 3b 09 0d | 0a 7d 0d 0a 0d 0a 66 75 | i+1);..|.}....fu|
|000036b0| 6e 63 74 69 6f 6e 20 66 | 6c 6f 61 74 20 43 61 6c |nction f|loat Cal|
|000036c0| 63 48 54 4d 4c 54 65 78 | 74 57 69 64 74 68 28 43 |cHTMLTex|tWidth(C|
|000036d0| 61 6e 76 61 73 20 43 2c | 20 73 74 72 69 6e 67 20 |anvas C,| string |
|000036e0| 54 65 78 74 2c 20 6f 75 | 74 20 48 54 4d 4c 53 74 |Text, ou|t HTMLSt|
|000036f0| 79 6c 65 20 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |yle Curr|entStyle|
|00003700| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 73 74 72 |)..{...l|ocal str|
|00003710| 69 6e 67 20 49 6e 70 75 | 74 2c 20 4c 65 66 74 54 |ing Inpu|t, LeftT|
|00003720| 65 78 74 2c 20 48 54 4d | 4c 2c 20 52 69 67 68 74 |ext, HTM|L, Right|
|00003730| 54 65 78 74 3b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |Text;...|local fl|
|00003740| 6f 61 74 20 57 2c 20 48 | 2c 20 57 69 64 74 68 3b |oat W, H|, Width;|
|00003750| 0d 0a 0d 0a 09 57 69 64 | 74 68 20 3d 20 30 3b 0d |.....Wid|th = 0;.|
|00003760| 0a 09 49 6e 70 75 74 20 | 3d 20 54 65 78 74 3b 0d |..Input |= Text;.|
|00003770| 0a 09 77 68 69 6c 65 28 | 49 6e 70 75 74 20 21 3d |..while(|Input !=|
|00003780| 20 22 22 29 0d 0a 09 7b | 0d 0a 09 09 50 61 72 73 | "")...{|....Pars|
|00003790| 65 48 54 4d 4c 28 49 6e | 70 75 74 2c 20 4c 65 66 |eHTML(In|put, Lef|
|000037a0| 74 54 65 78 74 2c 20 48 | 54 4d 4c 2c 20 52 69 67 |tText, H|TML, Rig|
|000037b0| 68 74 54 65 78 74 29 3b | 0d 0a 0d 0a 09 09 53 65 |htText);|......Se|
|000037c0| 74 43 61 6e 76 61 73 53 | 74 79 6c 65 28 43 2c 20 |tCanvasS|tyle(C, |
|000037d0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 3b 0d 0a |CurrentS|tyle);..|
|000037e0| 09 09 54 65 78 74 41 72 | 65 61 54 65 78 74 53 69 |..TextAr|eaTextSi|
|000037f0| 7a 65 28 43 2c 20 4c 65 | 66 74 54 65 78 74 2c 20 |ze(C, Le|ftText, |
|00003800| 57 2c 20 48 29 3b 0d 0a | 09 09 57 69 64 74 68 20 |W, H);..|..Width |
|00003810| 2b 3d 20 57 3b 0d 0a 09 | 09 09 09 09 0d 0a 09 09 |+= W;...|........|
|00003820| 50 72 6f 63 65 73 73 49 | 6e 6c 69 6e 65 48 54 4d |ProcessI|nlineHTM|
|00003830| 4c 28 48 54 4d 4c 2c 20 | 43 75 72 72 65 6e 74 53 |L(HTML, |CurrentS|
|00003840| 74 79 6c 65 29 3b 0d 0a | 0d 0a 09 09 49 6e 70 75 |tyle);..|....Inpu|
|00003850| 74 20 3d 20 52 69 67 68 | 74 54 65 78 74 3b 0d 0a |t = Righ|tText;..|
|00003860| 09 7d 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 57 69 |.}.....r|eturn Wi|
|00003870| 64 74 68 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 55 70 |dth;..}.|...// Up|
|00003880| 64 61 74 65 20 43 75 72 | 72 65 6e 74 53 74 79 6c |date Cur|rentStyl|
|00003890| 65 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 63 |e based |on the c|
|000038a0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 74 68 65 20 48 |ontents |of the H|
|000038b0| 54 4d 4c 20 74 61 67 20 | 70 72 6f 76 69 64 65 64 |TML tag |provided|
|000038c0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 50 72 6f 63 65 |..functi|on Proce|
|000038d0| 73 73 49 6e 6c 69 6e 65 | 48 54 4d 4c 28 73 74 72 |ssInline|HTML(str|
|000038e0| 69 6e 67 20 48 54 4d 4c | 2c 20 6f 75 74 20 48 54 |ing HTML|, out HT|
|000038f0| 4d 4c 53 74 79 6c 65 20 | 43 75 72 72 65 6e 74 53 |MLStyle |CurrentS|
|00003900| 74 79 6c 65 29 0d 0a 7b | 0d 0a 09 6c 6f 63 61 6c |tyle)..{|...local|
|00003910| 20 73 74 72 69 6e 67 20 | 54 65 6d 70 3b 0d 0a 0d | string |Temp;...|
|00003920| 0a 09 69 66 28 48 54 4d | 4c 20 3d 3d 20 22 22 29 |..if(HTM|L == "")|
|00003930| 09 0d 0a 09 09 72 65 74 | 75 72 6e 3b 0d 0a 0d 0a |.....ret|urn;....|
|00003940| 09 73 77 69 74 63 68 28 | 47 65 74 54 61 67 28 48 |.switch(|GetTag(H|
|00003950| 54 4d 4c 29 29 0d 0a 09 | 7b 0d 0a 09 63 61 73 65 |TML))...|{...case|
|00003960| 20 22 48 31 22 3a 0d 0a | 09 09 43 75 72 72 65 6e | "H1":..|..Curren|
|00003970| 74 53 74 79 6c 65 2e 62 | 48 65 61 64 69 6e 67 20 |tStyle.b|Heading |
|00003980| 3d 20 54 72 75 65 3b 0d | 0a 09 09 62 72 65 61 6b |= True;.|...break|
|00003990| 3b 0d 0a 09 63 61 73 65 | 20 22 2f 48 31 22 3a 0d |;...case| "/H1":.|
|000039a0| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|000039b0| 62 48 65 61 64 69 6e 67 | 20 3d 20 46 61 6c 73 65 |bHeading| = False|
|000039c0| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 09 09 09 0d 0a |;....bre|ak;.....|
|000039d0| 09 63 61 73 65 20 22 46 | 4f 4e 54 22 3a 0d 0a 09 |.case "F|ONT":...|
|000039e0| 09 54 65 6d 70 20 3d 20 | 47 65 74 4f 70 74 69 6f |.Temp = |GetOptio|
|000039f0| 6e 28 48 54 4d 4c 2c 20 | 22 43 4f 4c 4f 52 3d 22 |n(HTML, |"COLOR="|
|00003a00| 29 3b 0d 0a 09 09 69 66 | 28 54 65 6d 70 20 21 3d |);....if|(Temp !=|
|00003a10| 20 22 22 29 0d 0a 09 09 | 09 43 75 72 72 65 6e 74 | "")....|.Current|
|00003a20| 53 74 79 6c 65 2e 54 65 | 78 74 43 6f 6c 6f 72 20 |Style.Te|xtColor |
|00003a30| 3d 20 50 61 72 73 65 43 | 6f 6c 6f 72 28 54 65 6d |= ParseC|olor(Tem|
|00003a40| 70 29 3b 0d 0a 09 09 54 | 65 6d 70 20 3d 20 47 65 |p);....T|emp = Ge|
|00003a50| 74 4f 70 74 69 6f 6e 28 | 48 54 4d 4c 2c 20 22 42 |tOption(|HTML, "B|
|00003a60| 47 43 4f 4c 4f 52 3d 22 | 29 3b 0d 0a 09 09 69 66 |GCOLOR="|);....if|
|00003a70| 28 54 65 6d 70 20 21 3d | 20 22 22 29 0d 0a 09 09 |(Temp !=| "")....|
|00003a80| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 42 47 |.Current|Style.BG|
|00003a90| 43 6f 6c 6f 72 20 3d 20 | 50 61 72 73 65 43 6f 6c |Color = |ParseCol|
|00003aa0| 6f 72 28 54 65 6d 70 29 | 3b 0d 0a 09 09 62 72 65 |or(Temp)|;....bre|
|00003ab0| 61 6b 3b 0d 0a 09 63 61 | 73 65 20 22 2f 46 4f 4e |ak;...ca|se "/FON|
|00003ac0| 54 22 3a 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |T":....C|urrentSt|
|00003ad0| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 20 3d 20 |yle.Text|Color = |
|00003ae0| 54 65 78 74 43 6f 6c 6f | 72 3b 0d 0a 09 09 43 75 |TextColo|r;....Cu|
|00003af0| 72 72 65 6e 74 53 74 79 | 6c 65 2e 42 47 43 6f 6c |rrentSty|le.BGCol|
|00003b00| 6f 72 20 3d 20 42 47 43 | 6f 6c 6f 72 3b 0d 0a 09 |or = BGC|olor;...|
|00003b10| 09 62 72 65 61 6b 3b 0d | 0a 09 63 61 73 65 20 22 |.break;.|..case "|
|00003b20| 42 22 3a 0d 0a 09 09 43 | 75 72 72 65 6e 74 53 74 |B":....C|urrentSt|
|00003b30| 79 6c 65 2e 62 42 6f 6c | 64 20 3d 20 54 72 75 65 |yle.bBol|d = True|
|00003b40| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 63 61 |;....bre|ak;...ca|
|00003b50| 73 65 20 22 2f 42 22 3a | 0d 0a 09 09 43 75 72 72 |se "/B":|....Curr|
|00003b60| 65 6e 74 53 74 79 6c 65 | 2e 62 42 6f 6c 64 20 3d |entStyle|.bBold =|
|00003b70| 20 46 61 6c 73 65 3b 0d | 0a 09 09 62 72 65 61 6b | False;.|...break|
|00003b80| 3b 0d 0a 09 63 61 73 65 | 20 22 55 22 3a 0d 0a 09 |;...case| "U":...|
|00003b90| 09 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 55 |.Current|Style.bU|
|00003ba0| 6e 64 65 72 6c 69 6e 65 | 20 3d 20 54 72 75 65 3b |nderline| = True;|
|00003bb0| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00003bc0| 65 20 22 2f 55 22 3a 0d | 0a 09 09 43 75 72 72 65 |e "/U":.|...Curre|
|00003bd0| 6e 74 53 74 79 6c 65 2e | 62 55 6e 64 65 72 6c 69 |ntStyle.|bUnderli|
|00003be0| 6e 65 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 62 |ne = Fal|se;....b|
|00003bf0| 72 65 61 6b 3b 0d 0a 09 | 63 61 73 65 20 22 41 22 |reak;...|case "A"|
|00003c00| 3a 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |:....Cur|rentStyl|
|00003c10| 65 2e 62 4c 69 6e 6b 20 | 3d 20 54 72 75 65 3b 0d |e.bLink |= True;.|
|00003c20| 0a 09 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00003c30| 4c 69 6e 6b 44 65 73 74 | 69 6e 61 74 69 6f 6e 20 |LinkDest|ination |
|00003c40| 3d 20 47 65 74 4f 70 74 | 69 6f 6e 28 48 54 4d 4c |= GetOpt|ion(HTML|
|00003c50| 2c 20 22 48 52 45 46 3d | 22 29 3b 0d 0a 09 09 62 |, "HREF=|");....b|
|00003c60| 72 65 61 6b 3b 0d 0a 09 | 63 61 73 65 20 22 2f 41 |reak;...|case "/A|
|00003c70| 22 3a 0d 0a 09 09 43 75 | 72 72 65 6e 74 53 74 79 |":....Cu|rrentSty|
|00003c80| 6c 65 2e 62 4c 69 6e 6b | 20 3d 20 46 61 6c 73 65 |le.bLink| = False|
|00003c90| 3b 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |;....Cur|rentStyl|
|00003ca0| 65 2e 4c 69 6e 6b 44 65 | 73 74 69 6e 61 74 69 6f |e.LinkDe|stinatio|
|00003cb0| 6e 20 3d 20 22 22 3b 0d | 0a 09 09 62 72 65 61 6b |n = "";.|...break|
|00003cc0| 3b 0d 0a 09 63 61 73 65 | 20 22 4e 4f 42 52 22 3a |;...case| "NOBR":|
|00003cd0| 0d 0a 09 09 43 75 72 72 | 65 6e 74 53 74 79 6c 65 |....Curr|entStyle|
|00003ce0| 2e 62 4e 6f 42 52 20 3d | 20 54 72 75 65 3b 0d 0a |.bNoBR =| True;..|
|00003cf0| 09 09 62 72 65 61 6b 3b | 0d 0a 09 63 61 73 65 20 |..break;|...case |
|00003d00| 22 2f 4e 4f 42 52 22 3a | 0d 0a 09 09 43 75 72 72 |"/NOBR":|....Curr|
|00003d10| 65 6e 74 53 74 79 6c 65 | 2e 62 4e 6f 42 52 20 3d |entStyle|.bNoBR =|
|00003d20| 20 46 61 6c 73 65 3b 0d | 0a 09 09 62 72 65 61 6b | False;.|...break|
|00003d30| 3b 0d 0a 09 63 61 73 65 | 20 22 42 4c 49 4e 4b 22 |;...case| "BLINK"|
|00003d40| 3a 0d 0a 09 09 43 75 72 | 72 65 6e 74 53 74 79 6c |:....Cur|rentStyl|
|00003d50| 65 2e 62 42 6c 69 6e 6b | 20 3d 20 54 72 75 65 3b |e.bBlink| = True;|
|00003d60| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00003d70| 65 20 22 2f 42 4c 49 4e | 4b 22 3a 0d 0a 09 09 43 |e "/BLIN|K":....C|
|00003d80| 75 72 72 65 6e 74 53 74 | 79 6c 65 2e 62 42 6c 69 |urrentSt|yle.bBli|
|00003d90| 6e 6b 20 3d 20 46 61 6c | 73 65 3b 0d 0a 09 09 62 |nk = Fal|se;....b|
|00003da0| 72 65 61 6b 3b 0d 0a 09 | 7d 0d 0a 7d 0d 0a 0d 0a |reak;...|}..}....|
|00003db0| 2f 2f 20 75 70 64 61 74 | 65 20 74 68 65 20 63 75 |// updat|e the cu|
|00003dc0| 72 72 65 6e 74 20 73 74 | 79 6c 65 20 62 61 73 65 |rrent st|yle base|
|00003dd0| 64 20 6f 6e 20 73 6f 6d | 65 20 74 65 78 74 20 69 |d on som|e text i|
|00003de0| 6e 70 75 74 0d 0a 66 75 | 6e 63 74 69 6f 6e 20 48 |nput..fu|nction H|
|00003df0| 54 4d 4c 55 70 64 61 74 | 65 53 74 79 6c 65 28 73 |TMLUpdat|eStyle(s|
|00003e00| 74 72 69 6e 67 20 49 6e | 70 75 74 2c 20 6f 75 74 |tring In|put, out|
|00003e10| 20 48 54 4d 4c 53 74 79 | 6c 65 20 43 75 72 72 65 | HTMLSty|le Curre|
|00003e20| 6e 74 53 74 79 6c 65 29 | 0d 0a 7b 0d 0a 09 6c 6f |ntStyle)|..{...lo|
|00003e30| 63 61 6c 20 73 74 72 69 | 6e 67 20 4c 65 66 74 54 |cal stri|ng LeftT|
|00003e40| 65 78 74 2c 20 48 54 4d | 4c 2c 20 52 69 67 68 74 |ext, HTM|L, Right|
|00003e50| 54 65 78 74 3b 20 0d 0a | 0d 0a 09 77 68 69 6c 65 |Text; ..|...while|
|00003e60| 28 49 6e 70 75 74 20 21 | 3d 20 22 22 29 0d 0a 09 |(Input !|= "")...|
|00003e70| 7b 0d 0a 09 09 50 61 72 | 73 65 48 54 4d 4c 28 49 |{....Par|seHTML(I|
|00003e80| 6e 70 75 74 2c 20 4c 65 | 66 74 54 65 78 74 2c 20 |nput, Le|ftText, |
|00003e90| 48 54 4d 4c 2c 20 52 69 | 67 68 74 54 65 78 74 29 |HTML, Ri|ghtText)|
|00003ea0| 3b 0d 0a 09 09 50 72 6f | 63 65 73 73 49 6e 6c 69 |;....Pro|cessInli|
|00003eb0| 6e 65 48 54 4d 4c 28 48 | 54 4d 4c 2c 20 43 75 72 |neHTML(H|TML, Cur|
|00003ec0| 72 65 6e 74 53 74 79 6c | 65 29 3b 0d 0a 09 09 49 |rentStyl|e);....I|
|00003ed0| 6e 70 75 74 20 3d 20 52 | 69 67 68 74 54 65 78 74 |nput = R|ightText|
|00003ee0| 3b 0d 0a 09 7d 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |;...}..}|....func|
|00003ef0| 74 69 6f 6e 20 73 74 72 | 69 6e 67 20 47 65 74 4f |tion str|ing GetO|
|00003f00| 70 74 69 6f 6e 28 73 74 | 72 69 6e 67 20 48 54 4d |ption(st|ring HTM|
|00003f10| 4c 2c 20 73 74 72 69 6e | 67 20 4f 70 74 69 6f 6e |L, strin|g Option|
|00003f20| 29 0d 0a 7b 0d 0a 09 6c | 6f 63 61 6c 20 69 6e 74 |)..{...l|ocal int|
|00003f30| 20 69 2c 20 6a 3b 0d 0a | 09 6c 6f 63 61 6c 20 73 | i, j;..|.local s|
|00003f40| 74 72 69 6e 67 20 73 3b | 0d 0a 09 0d 0a 09 69 20 |tring s;|......i |
|00003f50| 3d 20 49 6e 53 74 72 28 | 43 61 70 73 28 48 54 4d |= InStr(|Caps(HTM|
|00003f60| 4c 29 2c 20 43 61 70 73 | 28 4f 70 74 69 6f 6e 29 |L), Caps|(Option)|
|00003f70| 29 3b 0d 0a 0d 0a 09 69 | 66 28 69 20 3d 3d 20 31 |);.....i|f(i == 1|
|00003f80| 20 7c 7c 20 4d 69 64 28 | 48 54 4d 4c 2c 20 69 2d | || Mid(|HTML, i-|
|00003f90| 31 2c 20 31 29 20 3d 3d | 20 22 20 22 29 20 0d 0a |1, 1) ==| " ") ..|
|00003fa0| 09 7b 0d 0a 09 09 73 20 | 3d 20 4d 69 64 28 48 54 |.{....s |= Mid(HT|
|00003fb0| 4d 4c 2c 20 69 2b 4c 65 | 6e 28 4f 70 74 69 6f 6e |ML, i+Le|n(Option|
|00003fc0| 29 29 3b 0d 0a 09 09 6a | 20 3d 20 46 69 72 73 74 |));....j| = First|
|00003fd0| 4d 61 74 63 68 69 6e 67 | 28 49 6e 53 74 72 28 73 |Matching|(InStr(s|
|00003fe0| 2c 20 22 3e 22 29 2c 20 | 49 6e 53 74 72 28 73 2c |, ">"), |InStr(s,|
|00003ff0| 20 22 20 22 29 29 3b 0d | 0a 09 09 73 20 3d 20 4c | " "));.|...s = L|
|00004000| 65 66 74 28 73 2c 20 6a | 29 3b 0d 0a 0d 0a 09 09 |eft(s, j|);......|
|00004010| 69 66 28 4c 65 66 74 28 | 73 2c 20 31 29 20 3d 3d |if(Left(|s, 1) ==|
|00004020| 20 22 5c 22 22 29 0d 0a | 09 09 09 73 20 3d 20 4d | "\"")..|...s = M|
|00004030| 69 64 28 73 2c 20 31 29 | 3b 0d 0a 0d 0a 09 09 69 |id(s, 1)|;......i|
|00004040| 66 28 52 69 67 68 74 28 | 73 2c 20 31 29 20 3d 3d |f(Right(|s, 1) ==|
|00004050| 20 22 5c 22 22 29 0d 0a | 09 09 09 73 20 3d 20 4c | "\"")..|...s = L|
|00004060| 65 66 74 28 73 2c 20 4c | 65 6e 28 73 29 20 2d 20 |eft(s, L|en(s) - |
|00004070| 31 29 3b 0d 0a 0d 0a 09 | 09 72 65 74 75 72 6e 20 |1);.....|.return |
|00004080| 73 3b 0d 0a 09 7d 0d 0a | 09 72 65 74 75 72 6e 20 |s;...}..|.return |
|00004090| 22 22 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |"";..}..|..functi|
|000040a0| 6f 6e 20 73 74 72 69 6e | 67 20 47 65 74 54 61 67 |on strin|g GetTag|
|000040b0| 28 73 74 72 69 6e 67 20 | 48 54 4d 4c 29 0d 0a 7b |(string |HTML)..{|
|000040c0| 0d 0a 09 6c 6f 63 61 6c | 20 69 6e 74 20 69 3b 0d |...local| int i;.|
|000040d0| 0a 0d 0a 09 69 66 28 48 | 54 4d 4c 20 3d 3d 20 22 |....if(H|TML == "|
|000040e0| 22 29 0d 0a 09 09 72 65 | 74 75 72 6e 20 22 22 3b |")....re|turn "";|
|000040f0| 0d 0a 0d 0a 09 48 54 4d | 4c 20 3d 20 4d 69 64 28 |.....HTM|L = Mid(|
|00004100| 48 54 4d 4c 2c 20 31 29 | 3b 20 2f 2f 20 6c 6f 73 |HTML, 1)|; // los|
|00004110| 65 20 3c 0d 0a 0d 0a 09 | 69 20 3d 20 46 69 72 73 |e <.....|i = Firs|
|00004120| 74 4d 61 74 63 68 69 6e | 67 28 49 6e 53 74 72 28 |tMatchin|g(InStr(|
|00004130| 48 54 4d 4c 2c 20 22 3e | 22 29 2c 20 49 6e 53 74 |HTML, ">|"), InSt|
|00004140| 72 28 48 54 4d 4c 2c 20 | 22 20 22 29 29 3b 0d 0a |r(HTML, |" "));..|
|00004150| 09 69 66 28 69 20 3d 3d | 20 2d 31 29 0d 0a 09 09 |.if(i ==| -1)....|
|00004160| 72 65 74 75 72 6e 20 43 | 61 70 73 28 48 54 4d 4c |return C|aps(HTML|
|00004170| 29 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 72 65 74 |);...els|e....ret|
|00004180| 75 72 6e 20 43 61 70 73 | 28 4c 65 66 74 28 48 54 |urn Caps|(Left(HT|
|00004190| 4d 4c 2c 20 69 29 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |ML, i));|..}....f|
|000041a0| 75 6e 63 74 69 6f 6e 20 | 43 6f 6c 6f 72 20 50 61 |unction |Color Pa|
|000041b0| 72 73 65 43 6f 6c 6f 72 | 28 73 74 72 69 6e 67 20 |rseColor|(string |
|000041c0| 53 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 43 6f |S)..{...|local Co|
|000041d0| 6c 6f 72 20 43 3b 0d 0a | 0d 0a 09 69 66 28 4c 65 |lor C;..|...if(Le|
|000041e0| 66 74 28 53 2c 20 31 29 | 20 3d 3d 20 22 23 22 29 |ft(S, 1)| == "#")|
|000041f0| 0d 0a 09 09 53 20 3d 20 | 4d 69 64 28 53 2c 20 31 |....S = |Mid(S, 1|
|00004200| 29 3b 0d 0a 0d 0a 09 43 | 2e 52 20 3d 20 31 36 20 |);.....C|.R = 16 |
|00004210| 2a 20 47 65 74 48 65 78 | 44 69 67 69 74 28 4d 69 |* GetHex|Digit(Mi|
|00004220| 64 28 53 2c 20 30 2c 20 | 31 29 29 20 2b 20 47 65 |d(S, 0, |1)) + Ge|
|00004230| 74 48 65 78 44 69 67 69 | 74 28 4d 69 64 28 53 2c |tHexDigi|t(Mid(S,|
|00004240| 20 31 2c 20 31 29 29 3b | 0d 0a 09 43 2e 47 20 3d | 1, 1));|...C.G =|
|00004250| 20 31 36 20 2a 20 47 65 | 74 48 65 78 44 69 67 69 | 16 * Ge|tHexDigi|
|00004260| 74 28 4d 69 64 28 53 2c | 20 32 2c 20 31 29 29 20 |t(Mid(S,| 2, 1)) |
|00004270| 2b 20 47 65 74 48 65 78 | 44 69 67 69 74 28 4d 69 |+ GetHex|Digit(Mi|
|00004280| 64 28 53 2c 20 33 2c 20 | 31 29 29 3b 0d 0a 09 43 |d(S, 3, |1));...C|
|00004290| 2e 42 20 3d 20 31 36 20 | 2a 20 47 65 74 48 65 78 |.B = 16 |* GetHex|
|000042a0| 44 69 67 69 74 28 4d 69 | 64 28 53 2c 20 34 2c 20 |Digit(Mi|d(S, 4, |
|000042b0| 31 29 29 20 2b 20 47 65 | 74 48 65 78 44 69 67 69 |1)) + Ge|tHexDigi|
|000042c0| 74 28 4d 69 64 28 53 2c | 20 35 2c 20 31 29 29 3b |t(Mid(S,| 5, 1));|
|000042d0| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 43 3b 0d 0a |.....ret|urn C;..|
|000042e0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 69 6e |}....fun|ction in|
|000042f0| 74 20 47 65 74 48 65 78 | 44 69 67 69 74 28 73 74 |t GetHex|Digit(st|
|00004300| 72 69 6e 67 20 44 29 0d | 0a 7b 0d 0a 09 73 77 69 |ring D).|.{...swi|
|00004310| 74 63 68 28 63 61 70 73 | 28 44 29 29 0d 0a 09 7b |tch(caps|(D))...{|
|00004320| 0d 0a 09 63 61 73 65 20 | 22 30 22 3a 20 72 65 74 |...case |"0": ret|
|00004330| 75 72 6e 20 30 3b 0d 0a | 09 63 61 73 65 20 22 31 |urn 0;..|.case "1|
|00004340| 22 3a 20 72 65 74 75 72 | 6e 20 31 3b 0d 0a 09 63 |": retur|n 1;...c|
|00004350| 61 73 65 20 22 32 22 3a | 20 72 65 74 75 72 6e 20 |ase "2":| return |
|00004360| 32 3b 0d 0a 09 63 61 73 | 65 20 22 33 22 3a 20 72 |2;...cas|e "3": r|
|00004370| 65 74 75 72 6e 20 33 3b | 0d 0a 09 63 61 73 65 20 |eturn 3;|...case |
|00004380| 22 34 22 3a 20 72 65 74 | 75 72 6e 20 34 3b 0d 0a |"4": ret|urn 4;..|
|00004390| 09 63 61 73 65 20 22 35 | 22 3a 20 72 65 74 75 72 |.case "5|": retur|
|000043a0| 6e 20 35 3b 20 0d 0a 09 | 63 61 73 65 20 22 36 22 |n 5; ...|case "6"|
|000043b0| 3a 20 72 65 74 75 72 6e | 20 36 3b 20 0d 0a 09 63 |: return| 6; ...c|
|000043c0| 61 73 65 20 22 37 22 3a | 20 72 65 74 75 72 6e 20 |ase "7":| return |
|000043d0| 37 3b 20 0d 0a 09 63 61 | 73 65 20 22 38 22 3a 20 |7; ...ca|se "8": |
|000043e0| 72 65 74 75 72 6e 20 38 | 3b 20 0d 0a 09 63 61 73 |return 8|; ...cas|
|000043f0| 65 20 22 39 22 3a 20 72 | 65 74 75 72 6e 20 39 3b |e "9": r|eturn 9;|
|00004400| 20 0d 0a 09 63 61 73 65 | 20 22 41 22 3a 20 72 65 | ...case| "A": re|
|00004410| 74 75 72 6e 20 31 30 3b | 20 0d 0a 09 63 61 73 65 |turn 10;| ...case|
|00004420| 20 22 42 22 3a 20 72 65 | 74 75 72 6e 20 31 31 3b | "B": re|turn 11;|
|00004430| 20 0d 0a 09 63 61 73 65 | 20 22 43 22 3a 20 72 65 | ...case| "C": re|
|00004440| 74 75 72 6e 20 31 32 3b | 20 0d 0a 09 63 61 73 65 |turn 12;| ...case|
|00004450| 20 22 44 22 3a 20 72 65 | 74 75 72 6e 20 31 33 3b | "D": re|turn 13;|
|00004460| 20 0d 0a 09 63 61 73 65 | 20 22 45 22 3a 20 72 65 | ...case| "E": re|
|00004470| 74 75 72 6e 20 31 34 3b | 20 0d 0a 09 63 61 73 65 |turn 14;| ...case|
|00004480| 20 22 46 22 3a 20 72 65 | 74 75 72 6e 20 31 35 3b | "F": re|turn 15;|
|00004490| 20 0d 0a 09 7d 0d 0a 0d | 0a 09 72 65 74 75 72 6e | ...}...|..return|
|000044a0| 20 30 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 | 0;..}..|..functi|
|000044b0| 6f 6e 20 69 6e 74 20 46 | 69 72 73 74 4d 61 74 63 |on int F|irstMatc|
|000044c0| 68 69 6e 67 28 69 6e 74 | 20 69 2c 20 69 6e 74 20 |hing(int| i, int |
|000044d0| 6a 29 0d 0a 7b 0d 0a 09 | 69 66 28 69 20 3d 3d 20 |j)..{...|if(i == |
|000044e0| 2d 31 29 0d 0a 09 09 72 | 65 74 75 72 6e 20 6a 3b |-1)....r|eturn j;|
|000044f0| 0d 0a 0d 0a 09 69 66 28 | 6a 20 3d 3d 20 2d 31 29 |.....if(|j == -1)|
|00004500| 0d 0a 09 09 72 65 74 75 | 72 6e 20 69 3b 0d 0a 09 |....retu|rn i;...|
|00004510| 65 6c 73 65 0d 0a 09 09 | 72 65 74 75 72 6e 20 4d |else....|return M|
|00004520| 69 6e 28 69 2c 20 6a 29 | 3b 0d 0a 7d 0d 0a 0d 0a |in(i, j)|;..}....|
|00004530| 66 75 6e 63 74 69 6f 6e | 20 53 65 74 43 61 6e 76 |function| SetCanv|
|00004540| 61 73 53 74 79 6c 65 28 | 43 61 6e 76 61 73 20 43 |asStyle(|Canvas C|
|00004550| 2c 20 48 54 4d 4c 53 74 | 79 6c 65 20 43 75 72 72 |, HTMLSt|yle Curr|
|00004560| 65 6e 74 53 74 79 6c 65 | 29 0d 0a 7b 0d 0a 09 69 |entStyle|)..{...i|
|00004570| 66 28 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |f(Curren|tStyle.b|
|00004580| 4c 69 6e 6b 29 0d 0a 09 | 09 43 2e 44 72 61 77 43 |Link)...|.C.DrawC|
|00004590| 6f 6c 6f 72 20 3d 20 4c | 69 6e 6b 43 6f 6c 6f 72 |olor = L|inkColor|
|000045a0| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 43 2e 44 72 |;...else|....C.Dr|
|000045b0| 61 77 43 6f 6c 6f 72 20 | 3d 20 43 75 72 72 65 6e |awColor |= Curren|
|000045c0| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|000045d0| 3b 0d 0a 0d 0a 09 69 66 | 28 43 75 72 72 65 6e 74 |;.....if|(Current|
|000045e0| 53 74 79 6c 65 2e 62 48 | 65 61 64 69 6e 67 29 0d |Style.bH|eading).|
|000045f0| 0a 09 09 43 2e 46 6f 6e | 74 20 3d 20 52 6f 6f 74 |...C.Fon|t = Root|
|00004600| 2e 46 6f 6e 74 73 5b 46 | 5f 4c 61 72 67 65 42 6f |.Fonts[F|_LargeBo|
|00004610| 6c 64 5d 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 69 66 |ld];...e|lse...if|
|00004620| 28 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 62 42 |(Current|Style.bB|
|00004630| 6f 6c 64 29 0d 0a 09 09 | 43 2e 46 6f 6e 74 20 3d |old)....|C.Font =|
|00004640| 20 52 6f 6f 74 2e 46 6f | 6e 74 73 5b 46 5f 42 6f | Root.Fo|nts[F_Bo|
|00004650| 6c 64 5d 3b 0d 0a 09 65 | 6c 73 65 0d 0a 09 09 43 |ld];...e|lse....C|
|00004660| 2e 46 6f 6e 74 20 3d 20 | 52 6f 6f 74 2e 46 6f 6e |.Font = |Root.Fon|
|00004670| 74 73 5b 46 5f 4e 6f 72 | 6d 61 6c 5d 3b 0d 0a 7d |ts[F_Nor|mal];..}|
|00004680| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 73 74 72 |....func|tion str|
|00004690| 69 6e 67 20 57 72 69 74 | 65 53 74 79 6c 65 54 65 |ing Writ|eStyleTe|
|000046a0| 78 74 28 48 54 4d 4c 53 | 74 79 6c 65 20 43 75 72 |xt(HTMLS|tyle Cur|
|000046b0| 72 65 6e 74 53 74 79 6c | 65 2c 20 69 6e 74 20 43 |rentStyl|e, int C|
|000046c0| 68 61 72 43 6f 75 6e 74 | 29 0d 0a 7b 0d 0a 09 6c |harCount|)..{...l|
|000046d0| 6f 63 61 6c 20 73 74 72 | 69 6e 67 20 50 61 64 3b |ocal str|ing Pad;|
|000046e0| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|000046f0| 54 65 6d 70 3b 0d 0a 09 | 6c 6f 63 61 6c 20 73 74 |Temp;...|local st|
|00004700| 72 69 6e 67 20 4f 75 74 | 70 75 74 3b 0d 0a 0d 0a |ring Out|put;....|
|00004710| 09 50 61 64 20 3d 20 22 | 30 30 30 30 22 3b 0d 0a |.Pad = "|0000";..|
|00004720| 0d 0a 09 54 65 6d 70 20 | 3d 20 73 74 72 69 6e 67 |...Temp |= string|
|00004730| 28 43 68 61 72 43 6f 75 | 6e 74 29 3b 0d 0a 09 4f |(CharCou|nt);...O|
|00004740| 75 74 70 75 74 20 3d 20 | 4c 65 66 74 28 50 61 64 |utput = |Left(Pad|
|00004750| 2c 20 34 20 2d 20 4c 65 | 6e 28 54 65 6d 70 29 29 |, 4 - Le|n(Temp))|
|00004760| 20 24 20 54 65 6d 70 3b | 0d 0a 09 09 0d 0a 09 54 | $ Temp;|.......T|
|00004770| 65 6d 70 20 3d 20 73 74 | 72 69 6e 67 28 4c 65 6e |emp = st|ring(Len|
|00004780| 28 43 75 72 72 65 6e 74 | 53 74 79 6c 65 2e 4c 69 |(Current|Style.Li|
|00004790| 6e 6b 44 65 73 74 69 6e | 61 74 69 6f 6e 29 29 3b |nkDestin|ation));|
|000047a0| 0d 0a 09 4f 75 74 70 75 | 74 20 3d 20 4f 75 74 70 |...Outpu|t = Outp|
|000047b0| 75 74 20 24 20 4c 65 66 | 74 28 50 61 64 2c 20 34 |ut $ Lef|t(Pad, 4|
|000047c0| 20 2d 20 4c 65 6e 28 54 | 65 6d 70 29 29 20 24 20 | - Len(T|emp)) $ |
|000047d0| 54 65 6d 70 20 24 20 43 | 75 72 72 65 6e 74 53 74 |Temp $ C|urrentSt|
|000047e0| 79 6c 65 2e 4c 69 6e 6b | 44 65 73 74 69 6e 61 74 |yle.Link|Destinat|
|000047f0| 69 6f 6e 3b 0d 0a 0d 0a | 09 54 65 6d 70 20 3d 20 |ion;....|.Temp = |
|00004800| 73 74 72 69 6e 67 28 43 | 75 72 72 65 6e 74 53 74 |string(C|urrentSt|
|00004810| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 2e 52 29 |yle.Text|Color.R)|
|00004820| 3b 0d 0a 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |;...Outp|ut = Out|
|00004830| 70 75 74 20 24 20 4c 65 | 66 74 28 50 61 64 2c 20 |put $ Le|ft(Pad, |
|00004840| 33 20 2d 20 4c 65 6e 28 | 54 65 6d 70 29 29 20 24 |3 - Len(|Temp)) $|
|00004850| 20 54 65 6d 70 3b 0d 0a | 09 54 65 6d 70 20 3d 20 | Temp;..|.Temp = |
|00004860| 73 74 72 69 6e 67 28 43 | 75 72 72 65 6e 74 53 74 |string(C|urrentSt|
|00004870| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 2e 47 29 |yle.Text|Color.G)|
|00004880| 3b 0d 0a 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |;...Outp|ut = Out|
|00004890| 70 75 74 20 24 20 4c 65 | 66 74 28 50 61 64 2c 20 |put $ Le|ft(Pad, |
|000048a0| 33 20 2d 20 4c 65 6e 28 | 54 65 6d 70 29 29 20 24 |3 - Len(|Temp)) $|
|000048b0| 20 54 65 6d 70 3b 0d 0a | 09 54 65 6d 70 20 3d 20 | Temp;..|.Temp = |
|000048c0| 73 74 72 69 6e 67 28 43 | 75 72 72 65 6e 74 53 74 |string(C|urrentSt|
|000048d0| 79 6c 65 2e 54 65 78 74 | 43 6f 6c 6f 72 2e 42 29 |yle.Text|Color.B)|
|000048e0| 3b 0d 0a 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |;...Outp|ut = Out|
|000048f0| 70 75 74 20 24 20 4c 65 | 66 74 28 50 61 64 2c 20 |put $ Le|ft(Pad, |
|00004900| 33 20 2d 20 4c 65 6e 28 | 54 65 6d 70 29 29 20 24 |3 - Len(|Temp)) $|
|00004910| 20 54 65 6d 70 3b 0d 0a | 0d 0a 09 54 65 6d 70 20 | Temp;..|...Temp |
|00004920| 3d 20 73 74 72 69 6e 67 | 28 43 75 72 72 65 6e 74 |= string|(Current|
|00004930| 53 74 79 6c 65 2e 42 47 | 43 6f 6c 6f 72 2e 52 29 |Style.BG|Color.R)|
|00004940| 3b 0d 0a 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |;...Outp|ut = Out|
|00004950| 70 75 74 20 24 20 4c 65 | 66 74 28 50 61 64 2c 20 |put $ Le|ft(Pad, |
|00004960| 33 20 2d 20 4c 65 6e 28 | 54 65 6d 70 29 29 20 24 |3 - Len(|Temp)) $|
|00004970| 20 54 65 6d 70 3b 0d 0a | 09 54 65 6d 70 20 3d 20 | Temp;..|.Temp = |
|00004980| 73 74 72 69 6e 67 28 43 | 75 72 72 65 6e 74 53 74 |string(C|urrentSt|
|00004990| 79 6c 65 2e 42 47 43 6f | 6c 6f 72 2e 47 29 3b 0d |yle.BGCo|lor.G);.|
|000049a0| 0a 09 4f 75 74 70 75 74 | 20 3d 20 4f 75 74 70 75 |..Output| = Outpu|
|000049b0| 74 20 24 20 4c 65 66 74 | 28 50 61 64 2c 20 33 20 |t $ Left|(Pad, 3 |
|000049c0| 2d 20 4c 65 6e 28 54 65 | 6d 70 29 29 20 24 20 54 |- Len(Te|mp)) $ T|
|000049d0| 65 6d 70 3b 0d 0a 09 54 | 65 6d 70 20 3d 20 73 74 |emp;...T|emp = st|
|000049e0| 72 69 6e 67 28 43 75 72 | 72 65 6e 74 53 74 79 6c |ring(Cur|rentStyl|
|000049f0| 65 2e 42 47 43 6f 6c 6f | 72 2e 42 29 3b 0d 0a 09 |e.BGColo|r.B);...|
|00004a00| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004a10| 24 20 4c 65 66 74 28 50 | 61 64 2c 20 33 20 2d 20 |$ Left(P|ad, 3 - |
|00004a20| 4c 65 6e 28 54 65 6d 70 | 29 29 20 24 20 54 65 6d |Len(Temp|)) $ Tem|
|00004a30| 70 3b 0d 0a 0d 0a 09 69 | 66 28 43 75 72 72 65 6e |p;.....i|f(Curren|
|00004a40| 74 53 74 79 6c 65 2e 62 | 43 65 6e 74 65 72 29 0d |tStyle.b|Center).|
|00004a50| 0a 09 09 4f 75 74 70 75 | 74 20 3d 20 4f 75 74 70 |...Outpu|t = Outp|
|00004a60| 75 74 20 24 20 22 54 22 | 3b 0d 0a 09 65 6c 73 65 |ut $ "T"|;...else|
|00004a70| 0d 0a 09 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |....Outp|ut = Out|
|00004a80| 70 75 74 20 24 20 22 46 | 22 3b 0d 0a 0d 0a 09 69 |put $ "F|";.....i|
|00004a90| 66 28 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |f(Curren|tStyle.b|
|00004aa0| 4c 69 6e 6b 29 0d 0a 09 | 09 4f 75 74 70 75 74 20 |Link)...|.Output |
|00004ab0| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 54 22 3b 0d |= Output| $ "T";.|
|00004ac0| 0a 09 65 6c 73 65 0d 0a | 09 09 4f 75 74 70 75 74 |..else..|..Output|
|00004ad0| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 22 46 22 3b | = Outpu|t $ "F";|
|00004ae0| 0d 0a 0d 0a 09 69 66 28 | 43 75 72 72 65 6e 74 53 |.....if(|CurrentS|
|00004af0| 74 79 6c 65 2e 62 55 6e | 64 65 72 6c 69 6e 65 29 |tyle.bUn|derline)|
|00004b00| 0d 0a 09 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |....Outp|ut = Out|
|00004b10| 70 75 74 20 24 20 22 54 | 22 3b 0d 0a 09 65 6c 73 |put $ "T|";...els|
|00004b20| 65 0d 0a 09 09 4f 75 74 | 70 75 74 20 3d 20 4f 75 |e....Out|put = Ou|
|00004b30| 74 70 75 74 20 24 20 22 | 46 22 3b 0d 0a 0d 0a 09 |tput $ "|F";.....|
|00004b40| 69 66 28 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |if(Curre|ntStyle.|
|00004b50| 62 4e 6f 42 52 29 0d 0a | 09 09 4f 75 74 70 75 74 |bNoBR)..|..Output|
|00004b60| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 22 54 22 3b | = Outpu|t $ "T";|
|00004b70| 0d 0a 09 65 6c 73 65 0d | 0a 09 09 4f 75 74 70 75 |...else.|...Outpu|
|00004b80| 74 20 3d 20 4f 75 74 70 | 75 74 20 24 20 22 46 22 |t = Outp|ut $ "F"|
|00004b90| 3b 0d 0a 0d 0a 09 69 66 | 28 43 75 72 72 65 6e 74 |;.....if|(Current|
|00004ba0| 53 74 79 6c 65 2e 62 48 | 65 61 64 69 6e 67 29 0d |Style.bH|eading).|
|00004bb0| 0a 09 09 4f 75 74 70 75 | 74 20 3d 20 4f 75 74 70 |...Outpu|t = Outp|
|00004bc0| 75 74 20 24 20 22 54 22 | 3b 0d 0a 09 65 6c 73 65 |ut $ "T"|;...else|
|00004bd0| 0d 0a 09 09 4f 75 74 70 | 75 74 20 3d 20 4f 75 74 |....Outp|ut = Out|
|00004be0| 70 75 74 20 24 20 22 46 | 22 3b 0d 0a 0d 0a 09 69 |put $ "F|";.....i|
|00004bf0| 66 28 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |f(Curren|tStyle.b|
|00004c00| 42 6f 6c 64 29 0d 0a 09 | 09 4f 75 74 70 75 74 20 |Bold)...|.Output |
|00004c10| 3d 20 4f 75 74 70 75 74 | 20 24 20 22 54 22 3b 0d |= Output| $ "T";.|
|00004c20| 0a 09 65 6c 73 65 0d 0a | 09 09 4f 75 74 70 75 74 |..else..|..Output|
|00004c30| 20 3d 20 4f 75 74 70 75 | 74 20 24 20 22 46 22 3b | = Outpu|t $ "F";|
|00004c40| 0d 0a 0d 0a 09 69 66 28 | 43 75 72 72 65 6e 74 53 |.....if(|CurrentS|
|00004c50| 74 79 6c 65 2e 62 42 6c | 69 6e 6b 29 0d 0a 09 09 |tyle.bBl|ink)....|
|00004c60| 4f 75 74 70 75 74 20 3d | 20 4f 75 74 70 75 74 20 |Output =| Output |
|00004c70| 24 20 22 54 22 3b 0d 0a | 09 65 6c 73 65 0d 0a 09 |$ "T";..|.else...|
|00004c80| 09 4f 75 74 70 75 74 20 | 3d 20 4f 75 74 70 75 74 |.Output |= Output|
|00004c90| 20 24 20 22 46 22 3b 0d | 0a 0d 0a 09 72 65 74 75 | $ "F";.|....retu|
|00004ca0| 72 6e 20 4f 75 74 70 75 | 74 3b 0d 0a 7d 0d 0a 0d |rn Outpu|t;..}...|
|00004cb0| 0a 66 75 6e 63 74 69 6f | 6e 20 69 6e 74 20 52 65 |.functio|n int Re|
|00004cc0| 61 64 53 74 79 6c 65 54 | 65 78 74 28 73 74 72 69 |adStyleT|ext(stri|
|00004cd0| 6e 67 20 53 74 79 6c 65 | 53 74 72 69 6e 67 2c 20 |ng Style|String, |
|00004ce0| 6f 75 74 20 69 6e 74 20 | 53 74 79 6c 65 50 6f 73 |out int |StylePos|
|00004cf0| 2c 20 6f 75 74 20 48 54 | 4d 4c 53 74 79 6c 65 20 |, out HT|MLStyle |
|00004d00| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 29 0d 0a 7b |CurrentS|tyle)..{|
|00004d10| 0d 0a 09 6c 6f 63 61 6c | 20 73 74 72 69 6e 67 20 |...local| string |
|00004d20| 54 65 6d 70 3b 0d 0a 09 | 6c 6f 63 61 6c 20 69 6e |Temp;...|local in|
|00004d30| 74 20 43 68 61 72 43 6f | 75 6e 74 3b 0d 0a 09 6c |t CharCo|unt;...l|
|00004d40| 6f 63 61 6c 20 69 6e 74 | 20 69 3b 09 0d 0a 0d 0a |ocal int| i;.....|
|00004d50| 09 43 68 61 72 43 6f 75 | 6e 74 20 3d 20 49 6e 74 |.CharCou|nt = Int|
|00004d60| 28 4d 69 64 28 53 74 79 | 6c 65 53 74 72 69 6e 67 |(Mid(Sty|leString|
|00004d70| 2c 20 53 74 79 6c 65 50 | 6f 73 2c 20 34 29 29 3b |, StyleP|os, 4));|
|00004d80| 0d 0a 09 53 74 79 6c 65 | 50 6f 73 20 2b 3d 20 34 |...Style|Pos += 4|
|00004d90| 3b 0d 0a 0d 0a 09 69 20 | 3d 20 49 6e 74 28 4d 69 |;.....i |= Int(Mi|
|00004da0| 64 28 53 74 79 6c 65 53 | 74 72 69 6e 67 2c 20 53 |d(StyleS|tring, S|
|00004db0| 74 79 6c 65 50 6f 73 2c | 20 34 29 29 3b 0d 0a 09 |tylePos,| 4));...|
|00004dc0| 53 74 79 6c 65 50 6f 73 | 20 2b 3d 20 34 3b 0d 0a |StylePos| += 4;..|
|00004dd0| 09 09 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |.....Cur|rentStyl|
|00004de0| 65 2e 4c 69 6e 6b 44 65 | 73 74 69 6e 61 74 69 6f |e.LinkDe|stinatio|
|00004df0| 6e 20 3d 20 4d 69 64 28 | 53 74 79 6c 65 53 74 72 |n = Mid(|StyleStr|
|00004e00| 69 6e 67 2c 20 53 74 79 | 6c 65 50 6f 73 2c 20 69 |ing, Sty|lePos, i|
|00004e10| 29 3b 0d 0a 09 53 74 79 | 6c 65 50 6f 73 20 2b 3d |);...Sty|lePos +=|
|00004e20| 20 69 3b 0d 0a 0d 0a 09 | 43 75 72 72 65 6e 74 53 | i;.....|CurrentS|
|00004e30| 74 79 6c 65 2e 54 65 78 | 74 43 6f 6c 6f 72 2e 52 |tyle.Tex|tColor.R|
|00004e40| 20 3d 20 49 6e 74 28 4d | 69 64 28 53 74 79 6c 65 | = Int(M|id(Style|
|00004e50| 53 74 72 69 6e 67 2c 20 | 53 74 79 6c 65 50 6f 73 |String, |StylePos|
|00004e60| 2c 20 33 29 29 3b 0d 0a | 09 53 74 79 6c 65 50 6f |, 3));..|.StylePo|
|00004e70| 73 20 2b 3d 20 33 3b 0d | 0a 09 43 75 72 72 65 6e |s += 3;.|..Curren|
|00004e80| 74 53 74 79 6c 65 2e 54 | 65 78 74 43 6f 6c 6f 72 |tStyle.T|extColor|
|00004e90| 2e 47 20 3d 20 49 6e 74 | 28 4d 69 64 28 53 74 79 |.G = Int|(Mid(Sty|
|00004ea0| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00004eb0| 6f 73 2c 20 33 29 29 3b | 0d 0a 09 53 74 79 6c 65 |os, 3));|...Style|
|00004ec0| 50 6f 73 20 2b 3d 20 33 | 3b 0d 0a 09 43 75 72 72 |Pos += 3|;...Curr|
|00004ed0| 65 6e 74 53 74 79 6c 65 | 2e 54 65 78 74 43 6f 6c |entStyle|.TextCol|
|00004ee0| 6f 72 2e 42 20 3d 20 49 | 6e 74 28 4d 69 64 28 53 |or.B = I|nt(Mid(S|
|00004ef0| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|00004f00| 65 50 6f 73 2c 20 33 29 | 29 3b 0d 0a 09 53 74 79 |ePos, 3)|);...Sty|
|00004f10| 6c 65 50 6f 73 20 2b 3d | 20 33 3b 0d 0a 0d 0a 09 |lePos +=| 3;.....|
|00004f20| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 42 47 43 |CurrentS|tyle.BGC|
|00004f30| 6f 6c 6f 72 2e 52 20 3d | 20 49 6e 74 28 4d 69 64 |olor.R =| Int(Mid|
|00004f40| 28 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |(StyleSt|ring, St|
|00004f50| 79 6c 65 50 6f 73 2c 20 | 33 29 29 3b 0d 0a 09 53 |ylePos, |3));...S|
|00004f60| 74 79 6c 65 50 6f 73 20 | 2b 3d 20 33 3b 0d 0a 09 |tylePos |+= 3;...|
|00004f70| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 42 47 43 |CurrentS|tyle.BGC|
|00004f80| 6f 6c 6f 72 2e 47 20 3d | 20 49 6e 74 28 4d 69 64 |olor.G =| Int(Mid|
|00004f90| 28 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |(StyleSt|ring, St|
|00004fa0| 79 6c 65 50 6f 73 2c 20 | 33 29 29 3b 0d 0a 09 53 |ylePos, |3));...S|
|00004fb0| 74 79 6c 65 50 6f 73 20 | 2b 3d 20 33 3b 0d 0a 09 |tylePos |+= 3;...|
|00004fc0| 43 75 72 72 65 6e 74 53 | 74 79 6c 65 2e 42 47 43 |CurrentS|tyle.BGC|
|00004fd0| 6f 6c 6f 72 2e 42 20 3d | 20 49 6e 74 28 4d 69 64 |olor.B =| Int(Mid|
|00004fe0| 28 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |(StyleSt|ring, St|
|00004ff0| 79 6c 65 50 6f 73 2c 20 | 33 29 29 3b 0d 0a 09 53 |ylePos, |3));...S|
|00005000| 74 79 6c 65 50 6f 73 20 | 2b 3d 20 33 3b 0d 0a 0d |tylePos |+= 3;...|
|00005010| 0a 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|00005020| 43 65 6e 74 65 72 20 3d | 20 4d 69 64 28 53 74 79 |Center =| Mid(Sty|
|00005030| 6c 65 53 74 72 69 6e 67 | 2c 20 53 74 79 6c 65 50 |leString|, StyleP|
|00005040| 6f 73 2b 2b 2c 20 31 29 | 20 3d 3d 20 22 54 22 3b |os++, 1)| == "T";|
|00005050| 0d 0a 09 43 75 72 72 65 | 6e 74 53 74 79 6c 65 2e |...Curre|ntStyle.|
|00005060| 62 4c 69 6e 6b 20 3d 20 | 4d 69 64 28 53 74 79 6c |bLink = |Mid(Styl|
|00005070| 65 53 74 72 69 6e 67 2c | 20 53 74 79 6c 65 50 6f |eString,| StylePo|
|00005080| 73 2b 2b 2c 20 31 29 20 | 3d 3d 20 22 54 22 3b 0d |s++, 1) |== "T";.|
|00005090| 0a 09 43 75 72 72 65 6e | 74 53 74 79 6c 65 2e 62 |..Curren|tStyle.b|
|000050a0| 55 6e 64 65 72 6c 69 6e | 65 20 3d 20 4d 69 64 28 |Underlin|e = Mid(|
|000050b0| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|000050c0| 6c 65 50 6f 73 2b 2b 2c | 20 31 29 20 3d 3d 20 22 |lePos++,| 1) == "|
|000050d0| 54 22 3b 0d 0a 09 43 75 | 72 72 65 6e 74 53 74 79 |T";...Cu|rrentSty|
|000050e0| 6c 65 2e 62 4e 6f 42 52 | 20 3d 20 4d 69 64 28 53 |le.bNoBR| = Mid(S|
|000050f0| 74 79 6c 65 53 74 72 69 | 6e 67 2c 20 53 74 79 6c |tyleStri|ng, Styl|
|00005100| 65 50 6f 73 2b 2b 2c 20 | 31 29 20 3d 3d 20 22 54 |ePos++, |1) == "T|
|00005110| 22 3b 0d 0a 09 43 75 72 | 72 65 6e 74 53 74 79 6c |";...Cur|rentStyl|
|00005120| 65 2e 62 48 65 61 64 69 | 6e 67 20 3d 20 4d 69 64 |e.bHeadi|ng = Mid|
|00005130| 28 53 74 79 6c 65 53 74 | 72 69 6e 67 2c 20 53 74 |(StyleSt|ring, St|
|00005140| 79 6c 65 50 6f 73 2b 2b | 2c 20 31 29 20 3d 3d 20 |ylePos++|, 1) == |
|00005150| 22 54 22 3b 0d 0a 09 43 | 75 72 72 65 6e 74 53 74 |"T";...C|urrentSt|
|00005160| 79 6c 65 2e 62 42 6f 6c | 64 20 3d 20 4d 69 64 28 |yle.bBol|d = Mid(|
|00005170| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|00005180| 6c 65 50 6f 73 2b 2b 2c | 20 31 29 20 3d 3d 20 22 |lePos++,| 1) == "|
|00005190| 54 22 3b 0d 0a 09 43 75 | 72 72 65 6e 74 53 74 79 |T";...Cu|rrentSty|
|000051a0| 6c 65 2e 62 42 6c 69 6e | 6b 20 3d 20 4d 69 64 28 |le.bBlin|k = Mid(|
|000051b0| 53 74 79 6c 65 53 74 72 | 69 6e 67 2c 20 53 74 79 |StyleStr|ing, Sty|
|000051c0| 6c 65 50 6f 73 2b 2b 2c | 20 31 29 20 3d 3d 20 22 |lePos++,| 1) == "|
|000051d0| 54 22 3b 0d 0a 0d 0a 09 | 72 65 74 75 72 6e 20 43 |T";.....|return C|
|000051e0| 68 61 72 43 6f 75 6e 74 | 3b 0d 0a 7d 0d 0a 0d 0a |harCount|;..}....|
|000051f0| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+